Просмотр исходного кода

fix tests: Take is now depending of move

Bastien Sevajol 9 лет назад
Родитель
Сommit
3e60b4feeb
1 измененных файлов: 7 добавлений и 7 удалений
  1. 7 7
      intelligine/tests/simulation/mode/TestChangeMode.py

+ 7 - 7
intelligine/tests/simulation/mode/TestChangeMode.py Просмотреть файл

@@ -113,8 +113,8 @@ class TestChangeMode(Base):
113 113
         self.assertFalse(self.ant.is_carrying())
114 114
 
115 115
         # Ant has take Food piece
116
-        self._run_and_get_core(19)
117
-        self.assertEquals((0, 0, -19), self.ant.get_position())
116
+        self._run_and_get_core(20)
117
+        self.assertEquals((0, 0, -20), self.ant.get_position())
118 118
         self.assertTrue(self.ant.is_carrying())
119 119
         self.assertIsNotNone(self.ant.get_carried())
120 120
         self.assertEquals(self.food.__class__, self.ant.get_carried().__class__)
@@ -124,25 +124,25 @@ class TestChangeMode(Base):
124 124
         self.assertEquals(MODE_GOHOME, self.ant.get_brain().get_movement_mode())
125 125
         self.assertEquals(PHEROMON_DIR_EXPLO, self.ant.get_movement_molecule_gland().get_molecule_type())
126 126
 
127
-        self._run_and_get_core(32)
127
+        self._run_and_get_core(34)
128 128
         self.assertEquals((0, 0, -6), self.ant.get_position())
129 129
         self.assertTrue(self.ant.is_carrying())
130 130
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
131 131
 
132
-        self._run_and_get_core(33)
132
+        self._run_and_get_core(35)
133 133
         self.assertEquals((0, 0, -5), self.ant.get_position())
134 134
         self.assertTrue(self.ant.is_carrying())
135 135
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
136 136
 
137
-        self._run_and_get_core(34)
137
+        self._run_and_get_core(36)
138 138
         self.assertEquals((0, 0, -4), self.ant.get_position())
139 139
         self.assertEquals(MODE_HOME, self.ant.get_brain().get_movement_mode())
140 140
 
141
-        self._run_and_get_core(37)
141
+        self._run_and_get_core(39)
142 142
         self.assertEquals((0, 0, -1), self.ant.get_position())
143 143
         # Ant has NOT put his food piece
144 144
         self.assertFalse(self.ant.is_carrying())
145 145
 
146
-        self._run_and_get_core(38)
146
+        self._run_and_get_core(40)
147 147
         self.assertEquals((0, 0, -2), self.ant.get_position())
148 148
         self.assertFalse(self.ant.is_carrying())