diff python/testasm.py @ 194:b01429a5d695

Fixed test
author Windel Bouwman
date Wed, 29 May 2013 22:36:37 +0200
parents f091e7d70996
children 37ac6c016e0f
line wrap: on
line diff
--- a/python/testasm.py	Sun May 26 23:58:59 2013 +0200
+++ b/python/testasm.py	Wed May 29 22:36:37 2013 +0200
@@ -35,12 +35,18 @@
     def testParse(self):
         asmline = 'lab1: mov rax, rbx'
         a = libasm.Assembler()
-        a.assembleLine(asmline)
+        a.parse_line(asmline)
 
     def testParse2(self):
         asmline = 'a: mov rax, [rbx + 2]'
         a = libasm.Assembler()
-        a.assembleLine(asmline)
+        a.parse_line(asmline)
+
+    def testParse3(self):
+        # A label must be optional:
+        asmline = 'mov rax, 1'
+        a = libasm.Assembler()
+        a.parse_line(asmline)
 
 if __name__ == '__main__':
     unittest.main()