mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-14 20:21:16 +00:00
fix test from previous
This commit is contained in:
parent
93ed16e74a
commit
1ba8a93bec
@ -26,7 +26,7 @@ def test_missing_sig(parser):
|
|||||||
def test_not_exact_syntax(parser):
|
def test_not_exact_syntax(parser):
|
||||||
"""Alert to inexact syntax right here in the parser instead of kicking it downstream.
|
"""Alert to inexact syntax right here in the parser instead of kicking it downstream.
|
||||||
Doing this means we don't have to save the actual text."""
|
Doing this means we don't have to save the actual text."""
|
||||||
parser.read_line("// function: test 1234")
|
parser.read_line("// function: test 0x1234")
|
||||||
assert len(parser.alerts) == 1
|
assert len(parser.alerts) == 1
|
||||||
assert parser.alerts[0].code == ParserError.BAD_DECOMP_MARKER
|
assert parser.alerts[0].code == ParserError.BAD_DECOMP_MARKER
|
||||||
|
|
||||||
|
|||||||
@ -41,8 +41,8 @@ def test_is_blank_or_comment(line: str, expected: bool):
|
|||||||
(True, False, "// FUNCTION: ISLE 0xdeadbeef"),
|
(True, False, "// FUNCTION: ISLE 0xdeadbeef"),
|
||||||
(True, False, "// FUNCTION: ISLE 0xdeadbeef"),
|
(True, False, "// FUNCTION: ISLE 0xdeadbeef"),
|
||||||
(True, False, "// FUNCTION: ISLE 0xdeadbeef"),
|
(True, False, "// FUNCTION: ISLE 0xdeadbeef"),
|
||||||
# Must have 0x prefix for hex number
|
# Must have 0x prefix for hex number to match at all
|
||||||
(True, False, "// FUNCTION: ISLE deadbeef"),
|
(False, False, "// FUNCTION: ISLE deadbeef"),
|
||||||
# Offset, module name, and STUB must be uppercase
|
# Offset, module name, and STUB must be uppercase
|
||||||
(True, False, "// function: ISLE 0xdeadbeef"),
|
(True, False, "// function: ISLE 0xdeadbeef"),
|
||||||
(True, False, "// function: isle 0xdeadbeef"),
|
(True, False, "// function: isle 0xdeadbeef"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user