Fix 'bat cache other-arg', closes #666

This commit is contained in:
sharkdp
2019-09-21 09:10:12 +02:00
parent 4df5973fde
commit f5d359927a
2 changed files with 32 additions and 13 deletions

View File

@@ -459,6 +459,17 @@ fn can_print_file_named_cache() {
.stderr("");
}
#[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()