예제 #1
0
 def test_map_iter(self):
     map = gpstk.map_int_string()
     map[5] = 'five'
     map[6] = 'six'
     list = []
     for key in map:
         list.append(key)
     self.assertEqual([5,6], sorted(list))
예제 #2
0
파일: test_misc.py 프로젝트: rwpenney/GPSTk
 def test_map_iter(self):
     map = gpstk.map_int_string()
     map[5] = 'five'
     map[6] = 'six'
     list = []
     for key in map:
         list.append(key)
     self.assertEqual([5,6], sorted(list))
예제 #3
0
 def test_map_len(self):
     map = gpstk.map_int_string()
     map[5] = 'five'
     map[6] = 'six'
     self.assertEqual(2, len(map))
예제 #4
0
파일: test_misc.py 프로젝트: rwpenney/GPSTk
 def test_map_len(self):
     map = gpstk.map_int_string()
     map[5] = 'five'
     map[6] = 'six'
     self.assertEqual(2, len(map))
예제 #5
0
 def test_map_len(self):
     map = gpstk.map_int_string()
     map[5] = "five"
     map[6] = "six"
     self.assertEqual(2, len(map))