def test(self):
     self.assertEqual(15, gpstk.SV_ACCURACY_GPS_MAX_INDEX_VALUE)
     self.assertEqual(9, gpstk.accuracy2ura(100.1))
     self.assertEqual(0.0, gpstk.sv_accuracy_gps_min_index(0))
     self.assertEqual(2.4, gpstk.sv_accuracy_gps_min_index(1))
     self.assertRaises(gpstk.IndexOutOfBoundsException,
                       gpstk.sv_accuracy_gps_min_index, 16)
Beispiel #2
0
 def test(self):
     self.assertEqual(15, gpstk.SV_ACCURACY_GPS_MAX_INDEX_VALUE)
     self.assertEqual(9, gpstk.accuracy2ura(100.1))
     self.assertEqual(0.0, gpstk.sv_accuracy_gps_min_index(0))
     self.assertEqual(2.4, gpstk.sv_accuracy_gps_min_index(1))
     self.assertRaises(gpstk.IndexOutOfBoundsException, gpstk.sv_accuracy_gps_min_index, 16)