Esempio n. 1
0
 def test_exact_match(self):
     wind = Wind(data.NO_WIND)
     npt.assert_equal(wind.magnitude_at(0.5, 0.5), 0.0)
Esempio n. 2
0
 def test_single_wind(self):
     wind = Wind(data.NORTH_WIND)
     npt.assert_equal(wind.magnitude_at(0.0, 0.0), 1.0)
     npt.assert_equal(wind.magnitude_at(0.5, 0.5), 1.0)
     npt.assert_equal(wind.magnitude_at(1.0, 1.0), 1.0)
Esempio n. 3
0
 def test_no_wind(self):
     wind = Wind(data.NO_WIND)
     npt.assert_equal(wind.magnitude_at(0.0, 0.0), 0.0)
     npt.assert_equal(wind.magnitude_at(1.0, 1.0), 0.0)