示例#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
 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
 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))