mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
fix test from previous
This commit is contained in:
@@ -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 @@ marker_samples = [
|
|||||||
(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"),
|
||||||
|
Reference in New Issue
Block a user