Separate unit tests

This commit is contained in:
sharkdp 2018-03-25 19:00:46 +02:00
parent 4f6c43a6dc
commit 9d840dd485
1 changed files with 6 additions and 0 deletions

View File

@ -511,6 +511,12 @@ fn test_absolute_path() {
abs_path = &abs_path
),
);
}
/// Show absolute paths if the path argument is absolute
#[test]
fn test_implicit_absolute_path() {
let (te, abs_path) = get_test_env_with_abs_path(DEFAULT_DIRS, DEFAULT_FILES);
te.assert_output(
&["foo", &abs_path],