Updated tests again
This commit is contained in:
parent
5f415509c4
commit
f2f85db5f3
1 changed files with 5 additions and 5 deletions
|
|
@ -152,7 +152,7 @@ class TurmitTestCase(unittest.TestCase):
|
|||
|
||||
def test_and(self):
|
||||
''' Test turmit binary and() method '''
|
||||
self._rpn('and')
|
||||
self._rpn('bin_and')
|
||||
|
||||
t = Turmit()
|
||||
t._push(42)
|
||||
|
|
@ -165,7 +165,7 @@ class TurmitTestCase(unittest.TestCase):
|
|||
|
||||
def test_or(self):
|
||||
''' Test turmit binary or() method '''
|
||||
self._rpn('or')
|
||||
self._rpn('bin_or')
|
||||
|
||||
t = Turmit()
|
||||
t._push(42)
|
||||
|
|
@ -178,7 +178,7 @@ class TurmitTestCase(unittest.TestCase):
|
|||
|
||||
def test_xor(self):
|
||||
''' Test turmit binary xor() method '''
|
||||
self._rpn('xor')
|
||||
self._rpn('bin_xor')
|
||||
|
||||
t = Turmit()
|
||||
t._push(42)
|
||||
|
|
@ -193,8 +193,8 @@ class TurmitTestCase(unittest.TestCase):
|
|||
self._rpn('rshift')
|
||||
|
||||
t = Turmit()
|
||||
t._push(42)
|
||||
t._push(2)
|
||||
t._push(42)
|
||||
|
||||
t.rshift()
|
||||
self.assertEqual(t._cur, 0)
|
||||
|
|
@ -205,8 +205,8 @@ class TurmitTestCase(unittest.TestCase):
|
|||
self._rpn('lshift')
|
||||
|
||||
t = Turmit()
|
||||
t._push(10)
|
||||
t._push(2)
|
||||
t._push(10)
|
||||
t.lshift()
|
||||
self.assertEqual(t._cur, 0)
|
||||
self.assertEqual(t.shead, 40)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue