Skip to content

Commit 476857f

Browse files
committed
Add symlink test
1 parent 4054779 commit 476857f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/glob-std.rs

+16
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,22 @@ fn main() {
9999
mk_file("r/three", true);
100100
mk_file("r/three/c.md", false);
101101

102+
mk_file("dirsym", true);
103+
mk_symlink_file("../r", "dirsym/link");
104+
105+
assert_eq!(
106+
glob_vec("dirsym/**/*.md"),
107+
vec!(
108+
PathBuf::from("dirsym/link/another/a.md"),
109+
PathBuf::from("dirsym/link/current_dir.md"),
110+
PathBuf::from("dirsym/link/one/a.md"),
111+
PathBuf::from("dirsym/link/one/another/a.md"),
112+
PathBuf::from("dirsym/link/one/another/deep/spelunking.md"),
113+
PathBuf::from("dirsym/link/three/c.md"),
114+
PathBuf::from("dirsym/link/two/b.md")
115+
)
116+
);
117+
102118
// all recursive entities
103119
assert_eq!(
104120
glob_vec("r/**"),

0 commit comments

Comments
 (0)