Skip to content

Commit bdebf13

Browse files
committed
Fix tests
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
1 parent c6d677a commit bdebf13

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/glob-std.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn main() {
3535
glob(pattern).unwrap().map(|r| r.unwrap()).collect()
3636
}
3737

38-
fn glob_with_vec(pattern: &str, options: &glob::MatchOptions) -> Vec<PathBuf> {
38+
fn glob_with_vec(pattern: &str, options: glob::MatchOptions) -> Vec<PathBuf> {
3939
glob_with(pattern, options).unwrap().map(|r| r.unwrap()).collect()
4040
}
4141

@@ -305,12 +305,13 @@ fn main() {
305305
require_literal_separator: true,
306306
require_literal_leading_dot: true,
307307
};
308-
assert_eq!(glob_with_vec("i/**/*a*", &options), Vec::<PathBuf>::new());
309-
assert_eq!(glob_with_vec("i/**/*c*", &options), Vec::<PathBuf>::new());
310-
assert_eq!(glob_with_vec("i/**/*d*", &options), Vec::<PathBuf>::new());
311-
assert_eq!(glob_with_vec("i/**/*e*", &options), vec!(
312-
PathBuf::from("i/qwe"),
313-
PathBuf::from("i/qwe/eee")));
308+
assert_eq!(glob_with_vec("i/**/*a*", options), Vec::<PathBuf>::new());
309+
assert_eq!(glob_with_vec("i/**/*c*", options), Vec::<PathBuf>::new());
310+
assert_eq!(glob_with_vec("i/**/*d*", options), Vec::<PathBuf>::new());
311+
assert_eq!(
312+
glob_with_vec("i/**/*e*", options),
313+
vec!(PathBuf::from("i/qwe"), PathBuf::from("i/qwe/eee"))
314+
);
314315

315316
if env::consts::FAMILY != "windows" {
316317
assert_eq!(

0 commit comments

Comments
 (0)