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