From 1ba8a93bec5df424c0c505f52eeeebeaf2fa6434 Mon Sep 17 00:00:00 2001 From: disinvite Date: Fri, 1 Dec 2023 17:39:38 -0500 Subject: [PATCH] fix test from previous --- tools/isledecomp/tests/test_parser.py | 2 +- tools/isledecomp/tests/test_parser_util.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/isledecomp/tests/test_parser.py b/tools/isledecomp/tests/test_parser.py index 7731918f..69764f74 100644 --- a/tools/isledecomp/tests/test_parser.py +++ b/tools/isledecomp/tests/test_parser.py @@ -26,7 +26,7 @@ def test_missing_sig(parser): def test_not_exact_syntax(parser): """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.""" - parser.read_line("// function: test 1234") + parser.read_line("// function: test 0x1234") assert len(parser.alerts) == 1 assert parser.alerts[0].code == ParserError.BAD_DECOMP_MARKER diff --git a/tools/isledecomp/tests/test_parser_util.py b/tools/isledecomp/tests/test_parser_util.py index bbbf2d3a..a8882721 100644 --- a/tools/isledecomp/tests/test_parser_util.py +++ b/tools/isledecomp/tests/test_parser_util.py @@ -41,8 +41,8 @@ marker_samples = [ (True, False, "// FUNCTION: ISLE 0xdeadbeef"), (True, False, "// FUNCTION: ISLE 0xdeadbeef"), (True, False, "// FUNCTION: ISLE 0xdeadbeef"), - # Must have 0x prefix for hex number - (True, False, "// FUNCTION: ISLE deadbeef"), + # Must have 0x prefix for hex number to match at all + (False, False, "// FUNCTION: ISLE deadbeef"), # Offset, module name, and STUB must be uppercase (True, False, "// function: ISLE 0xdeadbeef"), (True, False, "// function: isle 0xdeadbeef"),