Skip to content

Commit 0ec4bc6

Browse files
committed
Add variable string search tests.
1 parent ee391a2 commit 0ec4bc6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

components/core/tests/test-clp_s-search.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ TEST_CASE("clp-s-search", "[clp-s][search]") {
220220
{R"aa(idx: 0 AND NOT $*._filename.*: "clp string")aa", {0}},
221221
{R"aa(($_filename: file OR $_file_split_number: 1 OR $_archive_creator_id > 0) AND )aa"
222222
R"aa(idx: 0 OR idx: 1)aa",
223-
{1}}
223+
{1}},
224+
{R"aa(ambiguous_varstring: "a*e")aa", {10, 11, 12}},
225+
{R"aa(ambiguous_varstring: "a\*e")aa", {12}}
224226
};
225227
auto structurize_arrays = GENERATE(true, false);
226228
auto single_file_archive = GENERATE(true, false);

components/core/tests/test_log_files/test_search.jsonl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
{"idx": 7, "arr": [{"a": 999}, {"b": 1001}]}
99
{"idx": 8, "arr": {"a": 999, "b": 1001}}
1010
{"idx": 9, "var_string": "a", "clp_string": "a b", "float": 1.1, "int": 1, "bool": true, "array": [], "object": {}}
11+
{"idx": 10, "ambiguous_varstring": "abcde"}
12+
{"idx": 11, "ambiguous_varstring": "ae"}
13+
{"idx": 12, "ambiguous_varstring": "a*e"}

0 commit comments

Comments
 (0)