@@ -51,8 +51,9 @@ def test_few_steps_RCM(self):
5151 # check all positions and times
5252 assert all_walk_data ['xinds' ][0 ] == [16 , 17 , 18 , 19 ]
5353 assert all_walk_data ['yinds' ][0 ] == [140 , 141 , 141 , 141 ]
54- assert all_walk_data ['travel_times' ][0 ] == \
55- [0 , 7007593448.337235 , 10439964733.462337 , 13698473384.876724 ]
54+ assert all_walk_data ['travel_times' ][0 ] == pytest .approx (
55+ [0 , 7007593448.337235 , 10439964733.462337 , 13698473384.876724 ],
56+ rel = 1e-6 )
5657
5758 def test_set_time_RCM_previousdata (self ):
5859 '''
@@ -76,7 +77,8 @@ def test_set_time_RCM_previousdata(self):
7677 # check all positions and times
7778 assert all_walk_data ['xinds' ][0 ] == [16 , 17 ]
7879 assert all_walk_data ['yinds' ][0 ] == [140 , 141 ]
79- assert all_walk_data ['travel_times' ][0 ] == [0 , 7007593448.337235 ]
80+ assert all_walk_data ['travel_times' ][0 ] == pytest .approx (
81+ [0 , 7007593448.337235 ], rel = 1e-6 )
8082
8183 def test_set_time_RCM (self ):
8284 '''
@@ -101,7 +103,8 @@ def test_set_time_RCM(self):
101103 # check all positions and times
102104 assert all_walk_data ['xinds' ][0 ] == [16 , 17 ]
103105 assert all_walk_data ['yinds' ][0 ] == [140 , 141 ]
104- assert all_walk_data ['travel_times' ][0 ] == [0 , 7007593448.337235 ]
106+ assert all_walk_data ['travel_times' ][0 ] == pytest .approx (
107+ [0 , 7007593448.337235 ], rel = 1e-6 )
105108
106109
107110class TestANUGA :
0 commit comments