Skip to content

Commit

Permalink
Add tests for more edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
gibber9809 committed Dec 16, 2024
1 parent 0b71b46 commit 8508084
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/core/tests/test-kql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,13 @@ TEST_CASE("Test parsing KQL", "[KQL]") {
std::pair{"\\\\", "\\\\"},
std::pair{"\\??", "\\??"},
std::pair{"\\**", "\\**"},
std::pair{"\u9999", ""},
std::pair{"\\u9999", ""},
std::pair{"\\r\\n\\t\\b\\f", "\r\n\t\b\f"},
std::pair{"\\\"", "\""},
std::pair{"\\{\\}\\(\\)\\<\\>", "{}()<>"}
std::pair{"\\{\\}\\(\\)\\<\\>", "{}()<>"},
std::pair{"\\u003F", "\\?"},
std::pair{"\\u002A", "\\*"},
std::pair{"\\u005C", "\\\\"}
);

auto formatted_query = fmt::format("*: \"{}\"", translated_pair.first);
Expand Down

0 comments on commit 8508084

Please sign in to comment.