Skip to content

Commit

Permalink
Updated compiler tests to remove escaped [
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanDrake committed Jul 10, 2023
1 parent 0b12738 commit 028d093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/test2/cc_scanner_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,13 +750,13 @@ TEST_F(Scan, String1)
{
// Should scan advanced escape sequences within string.

std::string Input = "\"Oh, \\the \\brow\\n \\fo\\x5e jumps \\[ove\\r] the \\100\\azy dog.\"";
std::string Input = "\"Oh, \\the \\brow\\n \\fo\\x5e jumps [ove\\r] the \\100\\azy dog.\"";
AGS::Scanner scanner(Input, token_list, string_collector, sym, mh);

ASSERT_LE(0, scanner.GetNextSymstringT(symstring, sct, value));
ASSERT_LE(0, value);
EXPECT_STREQ("Oh, \the \brow\n \fo^ jumps \\[ove\r] the @\azy dog.", &(string_collector.strings[value]));
EXPECT_STREQ("\"Oh, \\the \\brow\\n \\fo\\x5e jumps \\[ove\\r] the \\100\\azy dog.\"", symstring.c_str());
EXPECT_STREQ("Oh, \the \brow\n \fo^ jumps [ove\r] the @\azy dog.", &(string_collector.strings[value]));
EXPECT_STREQ("\"Oh, \\the \\brow\\n \\fo\\x5e jumps [ove\\r] the \\100\\azy dog.\"", symstring.c_str());
}

TEST_F(Scan, UnknownKeywordAfterReadonly) {
Expand Down

0 comments on commit 028d093

Please sign in to comment.