Mercurial > lcfOS
comparison ide/runtests.py @ 8:edd70006d3e4
Started with MDI functions
author | windel |
---|---|
date | Fri, 21 Oct 2011 17:36:57 +0200 |
parents | 2db4d2b362e6 |
children | de004f808e56 |
comparison
equal
deleted
inserted
replaced
7:2db4d2b362e6 | 8:edd70006d3e4 |
---|---|
1 import unittest | 1 import unittest |
2 import os | |
2 | 3 |
3 from compiler.compiler import Compiler | 4 from compiler.compiler import Compiler |
4 from compiler.errors import CompilerException, printError | 5 from compiler.errors import CompilerException, printError |
5 from compiler import lexer | 6 from compiler import lexer |
6 from compiler.parser import Parser | 7 from compiler.parser import Parser |
263 q.load('test.xml') | 264 q.load('test.xml') |
264 | 265 |
265 assert(p.name == q.name) | 266 assert(p.name == q.name) |
266 assert(p.files == q.files) | 267 assert(p.files == q.files) |
267 # TODO: remove test.xml test file | 268 # TODO: remove test.xml test file |
269 os.remove('test.xml') | |
268 | 270 |
269 if __name__ == '__main__': | 271 if __name__ == '__main__': |
270 unittest.main() | 272 unittest.main() |
271 | 273 |