summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-08-15 08:34:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-08-15 08:34:22 (GMT)
commit18fe9a81c7531d22384e331a7ef78617c722de15 (patch)
tree60a6f99dd3c9c390579c5660c4ce4f4c9b6271ca /tests
parent340cbdbc4abedd060f3eb6745cd44e33ed19b93c (diff)
Changed the order of arguments for the Python symbol constructor.
Diffstat (limited to 'tests')
-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)