radicle/git/canonical: Add explicit test case for fast_glob pattern match syntax
This commit is contained in:
parent
80d30d3b59
commit
080790d84e
|
|
@ -551,3 +551,14 @@ fn matches_expands_globs_appropriately() {
|
|||
&git::fmt::qualified!("refs/heads/quarterly/hardened/15-stable/main/2026q2")
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn matches_exactly_curly_braces() {
|
||||
let exact = qualified_pattern!("refs/heads/{foo,bar}");
|
||||
assert!(matches(
|
||||
&exact,
|
||||
&git::fmt::qualified!("refs/heads/{foo,bar}")
|
||||
));
|
||||
assert!(!matches(&exact, &git::fmt::qualified!("refs/heads/foo")));
|
||||
assert!(!matches(&exact, &git::fmt::qualified!("refs/heads/bar")));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue