Skip to content

Commit

Permalink
test.py: fmt disasm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkhere committed Nov 7, 2024
1 parent e7dca4c commit 1c633d3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,24 @@

['51', '', '== /dev/stdin ==\n0000 1:1 RET', 'disasm'],
['52', 'eval nil',
'== /dev/stdin ==\n0000 1:9 NIL\n0001 | POP\n0002 | RET',
'== /dev/stdin ==\n'
'0000 1:9 NIL\n'
'0001 | POP\n'
'0002 | RET',
'disasm'
],
['53', 'eval 42',
"== /dev/stdin ==\n0000 1:8 CONST 0 '42'\n"
"0002 | POP\n0003 | RET",
"== /dev/stdin ==\n"
"0000 1:8 CONST 0 '42'\n"
"0002 | POP\n"
"0003 | RET",
'disasm'
],
['54', 'def b {}',
"== /dev/stdin ==\n0000 1:8 DEFBLOCK 0 'b'\t 1 ''\n"
"0003 1:9 ENDBLOCK\n0004 | RET",
"== /dev/stdin ==\n"
"0000 1:8 DEFBLOCK 0 'b'\t 1 ''\n"
"0003 1:9 ENDBLOCK\n"
"0004 | RET",
'disasm'
],

Expand Down

0 comments on commit 1c633d3

Please sign in to comment.