Skip to content

Commit 9a9c430

Browse files
committed
Merge pull request #45 from Stebalien/fix_tests
Fix tests
2 parents 47bfbd1 + 464fc36 commit 9a9c430

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tests/glob-std.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,18 @@ fn main() {
137137
PathBuf::from("r/another/a.md"),
138138
PathBuf::from("r/one/another/a.md")));
139139

140-
assert_eq!(glob_vec(""), Vec::new());
140+
assert_eq!(glob_vec(""), Vec::<PathBuf>::new());
141141
assert_eq!(glob_vec("."), vec!(PathBuf::from(".")));
142142
assert_eq!(glob_vec(".."), vec!(PathBuf::from("..")));
143143

144144
assert_eq!(glob_vec("aaa"), vec!(PathBuf::from("aaa")));
145145
assert_eq!(glob_vec("aaa/"), vec!(PathBuf::from("aaa")));
146-
assert_eq!(glob_vec("a"), Vec::new());
147-
assert_eq!(glob_vec("aa"), Vec::new());
148-
assert_eq!(glob_vec("aaaa"), Vec::new());
146+
assert_eq!(glob_vec("a"), Vec::<PathBuf>::new());
147+
assert_eq!(glob_vec("aa"), Vec::<PathBuf>::new());
148+
assert_eq!(glob_vec("aaaa"), Vec::<PathBuf>::new());
149149

150150
assert_eq!(glob_vec("aaa/apple"), vec!(PathBuf::from("aaa/apple")));
151-
assert_eq!(glob_vec("aaa/apple/nope"), Vec::new());
151+
assert_eq!(glob_vec("aaa/apple/nope"), Vec::<PathBuf>::new());
152152

153153
// windows should support both / and \ as directory separators
154154
if env::consts::FAMILY == "windows" {
@@ -201,23 +201,23 @@ fn main() {
201201
assert_eq!(glob_vec("./*"), glob_vec("*"));
202202
assert_eq!(glob_vec("*/..").pop().unwrap(), PathBuf::from("xyz/.."));
203203
assert_eq!(glob_vec("aaa/../bbb"), vec!(PathBuf::from("aaa/../bbb")));
204-
assert_eq!(glob_vec("nonexistent/../bbb"), Vec::new());
205-
assert_eq!(glob_vec("aaa/tomato/tomato.txt/.."), Vec::new());
204+
assert_eq!(glob_vec("nonexistent/../bbb"), Vec::<PathBuf>::new());
205+
assert_eq!(glob_vec("aaa/tomato/tomato.txt/.."), Vec::<PathBuf>::new());
206206

207-
assert_eq!(glob_vec("aaa/tomato/tomato.txt/"), Vec::new());
207+
assert_eq!(glob_vec("aaa/tomato/tomato.txt/"), Vec::<PathBuf>::new());
208208

209209
assert_eq!(glob_vec("aa[a]"), vec!(PathBuf::from("aaa")));
210210
assert_eq!(glob_vec("aa[abc]"), vec!(PathBuf::from("aaa")));
211211
assert_eq!(glob_vec("a[bca]a"), vec!(PathBuf::from("aaa")));
212-
assert_eq!(glob_vec("aa[b]"), Vec::new());
213-
assert_eq!(glob_vec("aa[xyz]"), Vec::new());
214-
assert_eq!(glob_vec("aa[]]"), Vec::new());
212+
assert_eq!(glob_vec("aa[b]"), Vec::<PathBuf>::new());
213+
assert_eq!(glob_vec("aa[xyz]"), Vec::<PathBuf>::new());
214+
assert_eq!(glob_vec("aa[]]"), Vec::<PathBuf>::new());
215215

216216
assert_eq!(glob_vec("aa[!b]"), vec!(PathBuf::from("aaa")));
217217
assert_eq!(glob_vec("aa[!bcd]"), vec!(PathBuf::from("aaa")));
218218
assert_eq!(glob_vec("a[!bcd]a"), vec!(PathBuf::from("aaa")));
219-
assert_eq!(glob_vec("aa[!a]"), Vec::new());
220-
assert_eq!(glob_vec("aa[!abc]"), Vec::new());
219+
assert_eq!(glob_vec("aa[!a]"), Vec::<PathBuf>::new());
220+
assert_eq!(glob_vec("aa[!abc]"), Vec::<PathBuf>::new());
221221

222222
assert_eq!(glob_vec("bbb/specials/[[]"), vec!(PathBuf::from("bbb/specials/[")));
223223
assert_eq!(glob_vec("bbb/specials/!"), vec!(PathBuf::from("bbb/specials/!")));

0 commit comments

Comments
 (0)