Skip to content

Commit

Permalink
Update tests and documents to use the revised options
Browse files Browse the repository at this point in the history
See also: #25
  • Loading branch information
wildlarva committed Jun 28, 2020
1 parent 3083a29 commit d5efd9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/mcdecoder/test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,22 @@ def test_run_app_export() -> None:


def test_run_app_emulate() -> None:
assert run_app(['mcdecoder', 'emulate', '--pattern',
assert run_app(['mcdecoder', 'emulate', '--input',
'e9 2d 48 00', 'test/arm.yaml']) == 0
assert run_app(['mcdecoder', 'emulate', '--pattern',
assert run_app(['mcdecoder', 'emulate', '--input',
'1110 1001 0010 1101 0100 1000 0000 0000', '--base', '2', 'test/arm.yaml']) == 0
assert run_app(['mcdecoder', 'emulate', '--pattern',
assert run_app(['mcdecoder', 'emulate', '--input',
'e9 2d 48 00', '--base', '16', 'test/arm.yaml']) == 0
assert run_app(['mcdecoder', 'emulate', '--pattern',
assert run_app(['mcdecoder', 'emulate', '--input',
'e9 2d 48 00', '--byteorder', 'big', 'test/arm.yaml']) == 0
assert run_app(['mcdecoder', 'emulate', '--pattern',
assert run_app(['mcdecoder', 'emulate', '--input',
'00 48 2d e9', '--byteorder', 'little', 'test/arm.yaml']) == 0


def test_run_app_check() -> None:
assert run_app(['mcdecoder', 'check', '--pattern',
assert run_app(['mcdecoder', 'check', '--input',
'ex xd 48 00', 'test/arm.yaml']) == 0
assert run_app(['mcdecoder', 'check', '--pattern',
assert run_app(['mcdecoder', 'check', '--input',
'111x x001 0010 1101 0100 1000 0000 000x', '--base', '2', 'test/arm.yaml']) == 0
assert run_app(['mcdecoder', 'check', '--pattern',
assert run_app(['mcdecoder', 'check', '--input',
'ex xd 48 00', '--base', '16', 'test/arm.yaml']) == 0
2 changes: 1 addition & 1 deletion src_docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Run the command:

.. code-block:: bash
mcdecoder emulate arm.yaml --pattern e28db004
mcdecoder emulate arm.yaml --input e28db004
Its output will be...

Expand Down

0 comments on commit d5efd9d

Please sign in to comment.