Searched refs:txt_pat (Results 1 – 1 of 1) sorted by relevance
1222 let txt_pat = Pattern::new("*hello.txt").unwrap(); in test_pattern_matches() localVariable1223 assert!(txt_pat.matches("hello.txt")); in test_pattern_matches()1224 assert!(txt_pat.matches("gareth_says_hello.txt")); in test_pattern_matches()1225 assert!(txt_pat.matches("some/path/to/hello.txt")); in test_pattern_matches()1226 assert!(txt_pat.matches("some\\path\\to\\hello.txt")); in test_pattern_matches()1227 assert!(txt_pat.matches("/an/absolute/path/to/hello.txt")); in test_pattern_matches()1228 assert!(!txt_pat.matches("hello.txt-and-then-some")); in test_pattern_matches()1229 assert!(!txt_pat.matches("goodbye.txt")); in test_pattern_matches()