Skip to content

Commit e3218de

Browse files
committed
Adding quotes around strings to explicitly show whitespace
1 parent b7f24db commit e3218de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test-grammar-integration.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ static void test_grammar(const std::string & grammar_str, const std::vector<std:
6565
bool matched = match_string(test_string, grammar);
6666

6767
if (!matched) {
68-
fprintf(stderr, " ❌ Failed to match string: %s\n", test_string.c_str());
68+
fprintf(stderr, " ❌ Failed to match string: \"%s\"\n", test_string.c_str());
6969
} else {
70-
fprintf(stdout, " ✅︎ Matched string: %s\n", test_string.c_str());
70+
fprintf(stdout, " ✅︎ Matched string: \"%s\"\n", test_string.c_str());
7171
}
7272

7373
assert(matched);
@@ -81,9 +81,9 @@ static void test_grammar(const std::string & grammar_str, const std::vector<std:
8181
bool matched = match_string(test_string, grammar);
8282

8383
if (matched) {
84-
fprintf(stderr, " ❌ Improperly matched string: %s\n", test_string.c_str());
84+
fprintf(stderr, " ❌ Improperly matched string: \"%s\"\n", test_string.c_str());
8585
} else {
86-
fprintf(stdout, " ✅︎ Correctly did not match string: %s\n", test_string.c_str());
86+
fprintf(stdout, " ✅︎ Correctly did not match string: \"%s\"\n", test_string.c_str());
8787
}
8888
assert(!matched);
8989

0 commit comments

Comments
 (0)