Browse Source

Updated tests again

Yann Weber 6 years ago
parent
commit
f2f85db5f3
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      tests/test_turmit.py

+ 5
- 5
tests/test_turmit.py View File

152
 
152
 
153
     def test_and(self):
153
     def test_and(self):
154
         ''' Test turmit binary and() method '''
154
         ''' Test turmit binary and() method '''
155
-        self._rpn('and')
155
+        self._rpn('bin_and')
156
 
156
 
157
         t = Turmit()
157
         t = Turmit()
158
         t._push(42)
158
         t._push(42)
165
 
165
 
166
     def test_or(self):
166
     def test_or(self):
167
         ''' Test turmit binary or() method '''
167
         ''' Test turmit binary or() method '''
168
-        self._rpn('or')
168
+        self._rpn('bin_or')
169
 
169
 
170
         t = Turmit()
170
         t = Turmit()
171
         t._push(42)
171
         t._push(42)
178
 
178
 
179
     def test_xor(self):
179
     def test_xor(self):
180
         ''' Test turmit binary xor() method '''
180
         ''' Test turmit binary xor() method '''
181
-        self._rpn('xor')
181
+        self._rpn('bin_xor')
182
 
182
 
183
         t = Turmit()
183
         t = Turmit()
184
         t._push(42)
184
         t._push(42)
193
         self._rpn('rshift')
193
         self._rpn('rshift')
194
 
194
 
195
         t = Turmit()
195
         t = Turmit()
196
-        t._push(42)
197
         t._push(2)
196
         t._push(2)
197
+        t._push(42)
198
 
198
 
199
         t.rshift()
199
         t.rshift()
200
         self.assertEqual(t._cur, 0)
200
         self.assertEqual(t._cur, 0)
205
         self._rpn('lshift')
205
         self._rpn('lshift')
206
 
206
 
207
         t = Turmit()
207
         t = Turmit()
208
-        t._push(10)
209
         t._push(2)
208
         t._push(2)
209
+        t._push(10)
210
         t.lshift()
210
         t.lshift()
211
         self.assertEqual(t._cur, 0)
211
         self.assertEqual(t._cur, 0)
212
         self.assertEqual(t.shead, 40)
212
         self.assertEqual(t.shead, 40)

Loading…
Cancel
Save