Dump now converts classes to dicts

This commit is contained in:
stefandesouza
2024-03-05 00:18:45 +01:00
parent 38781ecc94
commit 5f9de2c41d
10 changed files with 67 additions and 38 deletions

View File

@@ -168,7 +168,7 @@ class TestParserX86ATT(unittest.TestCase):
instruction_form_1 = InstructionForm(
mnemonic=None,
operands_id=[],
operands=[],
directive_id=None,
comment_id="-- Begin main",
label_id=None,
@@ -177,7 +177,7 @@ class TestParserX86ATT(unittest.TestCase):
)
instruction_form_2 = InstructionForm(
mnemonic=None,
operands_id=[],
operands=[],
directive_id=None,
comment_id="Preds ..B1.6",
label_id="..B1.7",
@@ -186,7 +186,7 @@ class TestParserX86ATT(unittest.TestCase):
)
instruction_form_3 = InstructionForm(
mnemonic=None,
operands_id=[],
operands=[],
directive_id={"name": "quad", "parameters": [".2.3_2__kmpc_loc_pack.2"]},
comment_id="qed",
label_id=None,
@@ -195,7 +195,7 @@ class TestParserX86ATT(unittest.TestCase):
)
instruction_form_4 = InstructionForm(
mnemonic="lea",
operands_id=[
operands=[
{
"memory": {
"offset": {"value": 2},