diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-04-04 20:36:35 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-04-04 20:36:35 +0000 |
commit | bd78ed0726530c4a0c3bbd2a5e6ebfc4402d6d73 (patch) | |
tree | 9cd846740bb76969268b494077ea8a34fed31e43 /tests | |
parent | 5e0edffa3cff4d1adc35b1a3f4f07ece1944c608 (diff) | |
parent | 62878a2cefaaf2b96175c77e40bc052fb07914f2 (diff) | |
download | build-bd78ed0726530c4a0c3bbd2a5e6ebfc4402d6d73.tar.gz |
Merge "Remove regex functionality from rbcrun"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run.rbc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/run.rbc b/tests/run.rbc index a9b16734d5..82a5e727ca 100644 --- a/tests/run.rbc +++ b/tests/run.rbc @@ -53,7 +53,11 @@ assert_eq(["foo/%"], rblf.mkpatsubst("%", "%/%", ["foo"])) assert_eq(["from/a:to/a", "from/b:to/b"], rblf.product_copy_files_by_pattern("from/%", "to/%", "a b")) assert_eq([], rblf.filter(["a", "", "b"], "f")) -assert_eq(["", "b"], rblf.filter_out(["a", "" ], ["a", "", "b"] )) +assert_eq(["ab%c", "axyzb%c"], rblf.filter(["a%b%c"], ["ab%c", "axyzb%c", "axyzb%cd", "axyzbwc"])) +assert_eq(["abc", "bcd"], rblf.filter(["a%", "b%"], ["abc", "def", "bcd", "xabc"])) +assert_eq(["b", "ab"], rblf.filter_out(["a", "" ], ["a", "", "b", "ab"])) +assert_eq(["c"], rblf.filter_out(["a", "b" ], ["a", "b", "c"])) +assert_eq(["c"], rblf.filter_out(["a%", "b" ], ["abc", "b", "c"])) assert_eq("foo.c no_folder", rblf.notdir(["src/foo.c", "no_folder"])) assert_eq("foo.c no_folder", rblf.notdir("src/foo.c no_folder")) |