diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-09-24 19:18:48 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-09-24 19:18:48 -0400 |
commit | 7b860affbeb015aa0298a95b1e23eb8db7d181cc (patch) | |
tree | 44e4de4feef1d71d679d4022f56e6f9971a0002b /tests | |
parent | af4dc785370a031b55d709fb7541260c185e1c54 (diff) |
Change the default output of --files to elide './'.
This is kind of a ticky-tack change. I do think ./ as a prefix is
reasonable default, *but* we strip ./ when showing search results, so it
does make sense to be consistent.
Fixes #21.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 5b86a40b..bd85fb19 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -703,11 +703,9 @@ fn files() { cmd.arg("--files"); let lines: String = wd.stdout(&mut cmd); if cfg!(windows) { - assert!(lines == "./dir\\file\n./file\n" - || lines == "./file\n./dir\\file\n"); + assert!(lines == "dir\\file\nfile\n" || lines == "file\ndir\\file\n"); } else { - assert!(lines == "./file\n./dir/file\n" - || lines == "./dir/file\n./file\n"); + assert!(lines == "file\ndir/file\n" || lines == "dir/file\nfile\n"); } } |