コード例 #1
0
ファイル: test_mov.py プロジェクト: Groutcho/exii
 def test_parse_02(self):
     mov = Mov.parse(['ax,', 'bx'])
     self.assertEqual(mov.source, 'bx')
     self.assertEqual(mov.dest, 'ax')
コード例 #2
0
ファイル: test_mov.py プロジェクト: Groutcho/exii
 def test_parse_03(self):
     self.assertRaises(SyntaxError, lambda: Mov.parse(['ax,', 'bx', 'ip']))
コード例 #3
0
ファイル: test_mov.py プロジェクト: Groutcho/exii
 def test_parse_01(self):
     mov = Mov.parse(['ax', 'bx'])
     self.assertIsInstance(mov, Mov)