mirror of
https://github.com/KrisKennaway/ii-vision.git
synced 2025-07-16 12:24:13 +00:00
Move transcoder to new location
This commit is contained in:
26
transcoder/opcodes_test.py
Normal file
26
transcoder/opcodes_test.py
Normal file
@@ -0,0 +1,26 @@
|
||||
import unittest
|
||||
|
||||
from transcoder import opcodes
|
||||
|
||||
|
||||
class TestOpcodes(unittest.TestCase):
|
||||
def test_equality(self):
|
||||
op1 = opcodes.Terminate()
|
||||
op2 = opcodes.Terminate()
|
||||
self.assertEqual(op1, op2)
|
||||
|
||||
op1 = opcodes.SetPage(0x20)
|
||||
op2 = opcodes.SetPage(0x20)
|
||||
self.assertEqual(op1, op2)
|
||||
|
||||
op1 = opcodes.SetPage(0x20)
|
||||
op2 = opcodes.SetPage(0x21)
|
||||
self.assertNotEqual(op1, op2)
|
||||
|
||||
op1 = opcodes.SetPage(0x20)
|
||||
op2 = opcodes.Terminate()
|
||||
self.assertNotEqual(op1, op2)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Reference in New Issue
Block a user