[tests] Update URI test.
@@ -48,9 +48,6 @@ def test_invalid_benchmark_uris():
assert not BENCHMARK_URI_RE.match("benchmark://cbench-v0") # Missing benchmark ID
assert not BENCHMARK_URI_RE.match("benchmark://cbench-v0/") # Missing benchmark ID
- # Invalid benchmark ID
- assert not BENCHMARK_URI_RE.match("benchmark://cbench-v1/\t") # Whitespace
-
def test_benchmark_uri_dataset():
assert (
@@ -104,6 +101,10 @@ def test_benchmark_uri_id():
BENCHMARK_URI_RE, "benchmark_name", "benchmark://cbench-v1/ white space"
)
) == " white space"
+ # This URI makes no sense, but is valid I suppose.
+ assert (
+ _rgx_match(BENCHMARK_URI_RE, "benchmark_name", "benchmark://cbench-v1/\t")
+ ) == "\t"
def test_benchmark_attribute_outside_init():
