Test --binary=as-text

This commit is contained in:
einfachIrgendwer0815 2024-05-31 18:32:28 +02:00
parent 7f089ead62
commit 7cc231b82b
No known key found for this signature in database
GPG Key ID: 58D55E5F117DA873

View File

@ -1929,6 +1929,16 @@ fn show_all_with_unicode() {
.stderr("");
}
#[test]
fn binary_as_text() {
bat()
.arg("--binary=as-text")
.arg("control_characters.txt")
.assert()
.stdout("\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F\x7F")
.stderr("");
}
#[test]
fn no_paging_arg() {
bat()