comparison ide/runtests.py @ 15:de004f808e56

Fixup in multidocument area stuff
author windel
date Tue, 15 Nov 2011 07:35:00 +0100
parents edd70006d3e4
children
comparison
equal deleted inserted replaced
11:607898120eb1 15:de004f808e56
252 assert(assembler.imulreg64('r12', 'rbx') == [0x4c, 0xf, 0xaf, 0xe3]) 252 assert(assembler.imulreg64('r12', 'rbx') == [0x4c, 0xf, 0xaf, 0xe3])
253 # nasm generates this machine code: 0x4d, 0x6b, 0xff, 0xee 253 # nasm generates this machine code: 0x4d, 0x6b, 0xff, 0xee
254 # This also works: 4D0FAFFE (another variant?? ) 254 # This also works: 4D0FAFFE (another variant?? )
255 assert(assembler.imulreg64('r15', 'r14') == [0x4d, 0x0f, 0xaf, 0xfe]) 255 assert(assembler.imulreg64('r15', 'r14') == [0x4d, 0x0f, 0xaf, 0xfe])
256 def testProject(self): 256 def testProject(self):
257 p = Project() 257 p = Project('test.xml', isnew=True)
258 p.name = "Test project" 258 p.name = "Test project"
259 p.files.append('main.mod') 259 p.files.append('main.mod')
260 p.files.append('test.mod') 260 p.files.append('test.mod')
261 p.save('test.xml') 261 p.save('test.xml')
262 262
263 q = Project() 263 q = Project('test.xml')
264 q.load('test.xml')
265 264
266 assert(p.name == q.name) 265 assert(p.name == q.name)
267 assert(p.files == q.files) 266 assert(p.files == q.files)
268 # TODO: remove test.xml test file 267 # TODO: remove test.xml test file
269 os.remove('test.xml') 268 os.remove('test.xml')