summaryrefslogtreecommitdiff
path: root/tests/format/symbol.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/format/symbol.py')
-rw-r--r--tests/format/symbol.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/format/symbol.py b/tests/format/symbol.py
index 6cffe57..6c4f573 100644
--- a/tests/format/symbol.py
+++ b/tests/format/symbol.py
@@ -19,7 +19,7 @@ class TestBinarySymbols(ChrysalideTestCase):
saddr = vmpa(0x10, vmpa.VMPA_NO_VIRTUAL)
srange = mrange(saddr, 0x3)
- symbol = BinSymbol(BinSymbol.SymbolType.ENTRY_POINT, srange)
+ symbol = BinSymbol(srange, BinSymbol.SymbolType.ENTRY_POINT)
self.assertEqual(symbol.range.length, 0x3)
@@ -55,7 +55,7 @@ class TestBinarySymbols(ChrysalideTestCase):
saddr = vmpa(0x10, vmpa.VMPA_NO_VIRTUAL)
srange = mrange(saddr, 0x3)
- symbol = BinSymbol(BinSymbol.SymbolType.ENTRY_POINT, srange)
+ symbol = BinSymbol(srange, BinSymbol.SymbolType.ENTRY_POINT)
self.assertEqual(symbol.status, BinSymbol.SymbolStatus.INTERNAL)
@@ -67,15 +67,15 @@ class TestBinarySymbols(ChrysalideTestCase):
saddr = vmpa(0x100, vmpa.VMPA_NO_VIRTUAL)
srange = mrange(saddr, 0x3)
- symbol0 = BinSymbol(BinSymbol.SymbolType.ENTRY_POINT, srange)
+ symbol0 = BinSymbol(srange, BinSymbol.SymbolType.ENTRY_POINT)
saddr = vmpa(0x10, vmpa.VMPA_NO_VIRTUAL)
srange = mrange(saddr, 0x3)
- symbol1 = BinSymbol(BinSymbol.SymbolType.ENTRY_POINT, srange)
+ symbol1 = BinSymbol(srange, BinSymbol.SymbolType.ENTRY_POINT)
saddr = vmpa(0x100, vmpa.VMPA_NO_VIRTUAL)
srange = mrange(saddr, 0x30)
- symbol2 = BinSymbol(BinSymbol.SymbolType.ENTRY_POINT, srange)
+ symbol2 = BinSymbol(srange, BinSymbol.SymbolType.ENTRY_POINT)
self.assertTrue(symbol0 == symbol0)
@@ -95,7 +95,7 @@ class TestBinarySymbols(ChrysalideTestCase):
saddr = vmpa(0x100, vmpa.VMPA_NO_VIRTUAL)
srange = mrange(saddr, 0x3)
- symbol = MySymbol(BinSymbol.SymbolType.ENTRY_POINT, srange)
+ symbol = MySymbol(srange, BinSymbol.SymbolType.ENTRY_POINT)
self.assertEqual(symbol.label, 'AAA')
@@ -106,7 +106,7 @@ class TestBinarySymbols(ChrysalideTestCase):
class MyOtherSymbol(BinSymbol):
pass
- other = MyOtherSymbol(BinSymbol.SymbolType.ENTRY_POINT, srange)
+ other = MyOtherSymbol(srange, BinSymbol.SymbolType.ENTRY_POINT)
self.assertEqual(other.label, None)