test

Ruby code posted
created at 10 Mar 09:56

Edit | Back
1
2
3
4
5
6
  def test_izracunana_razdalja
    @igra.hitrost = 1
    @igra.kot = 1
    @igra.razdalja_do_tarce  = 1
    assert_equal ((1 ** 2 * (Math.sin(2 * 1 * Math::PI / 180) ))/10), @igra.izracun_razdalje_strela
  end
211 Bytes in 2 ms with coderay