diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-09-09 23:19:46 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-09-09 23:19:46 -0400 |
commit | 1e678d70527faee4b7c3b246a64ee5ca4a15c497 (patch) | |
tree | 8392b8f69783e9b1f256d76e60269c3f567c9eab /tests | |
parent | dd986d7fe92d08766520ae07a6249f2ee66817b7 (diff) |
Fix `files` test. What a pain.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 608f3572..fbfef2dc 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -548,7 +548,13 @@ fn files() { let mut cmd = wd.command(); cmd.arg("--files"); let lines: String = wd.stdout(&mut cmd); - assert_eq!(lines, "./file\n./dir/file\n"); + if cfg!(windows) { + assert!(lines == "./dir\\file\n./file\n" + || lines == "./file\n./dir\\file\n"); + } else { + assert!(lines == "./file\n./dir/file\n" + || lines == "./dir/file\n./file\n"); + } } #[test] |