Mercurial > lcfOS
comparison test/testasm.py @ 348:442fb043d149
Added log option to zcc
author | Windel Bouwman |
---|---|
date | Sat, 08 Mar 2014 15:32:33 +0100 |
parents | 3bb7dcfe5529 |
children | 6df89163e114 |
comparison
equal
deleted
inserted
replaced
346:3bb7dcfe5529 | 348:442fb043d149 |
---|---|
94 | 94 |
95 class OustreamTestCase(unittest.TestCase): | 95 class OustreamTestCase(unittest.TestCase): |
96 def test1(self): | 96 def test1(self): |
97 obj = ObjectFile() | 97 obj = ObjectFile() |
98 o = BinaryOutputStream(obj) | 98 o = BinaryOutputStream(obj) |
99 o.selectSection('.text') | 99 o.select_section('.text') |
100 o.emit(Label('a')) | 100 o.emit(Label('a')) |
101 self.assertSequenceEqual(bytes(), obj.get_section('.text').data) | 101 self.assertSequenceEqual(bytes(), obj.get_section('.text').data) |
102 | 102 |
103 | 103 |
104 class AsmTestCaseBase(unittest.TestCase): | 104 class AsmTestCaseBase(unittest.TestCase): |