diff options
author | sharkdp <davidpeter@web.de> | 2019-09-21 09:10:12 +0200 |
---|---|---|
committer | sharkdp <davidpeter@web.de> | 2019-09-21 09:10:12 +0200 |
commit | f5d359927ad6176d5bd8b9f2cf938f58c5f51575 (patch) | |
tree | b2042faf0ede4e22a3163edc79430744faff35c7 /tests | |
parent | 4df5973fde4a015f6cc94db54ea2e92e6c0650b2 (diff) |
Fix 'bat cache other-arg', closes #666
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 120449a7..0777dda4 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -460,6 +460,17 @@ fn can_print_file_named_cache() { } #[test] +fn can_print_file_named_cache_with_additional_argument() { + bat_with_config() + .arg("cache") + .arg("test.txt") + .assert() + .success() + .stdout("test\nhello world\n") + .stderr(""); +} + +#[test] fn can_print_file_starting_with_cache() { bat_with_config() .arg("cache.c") |