1
0
mirror of https://github.com/sharkdp/bat.git synced 2026-02-08 00:32:08 +00:00

Add show-all integration test

This commit is contained in:
Alex Kirk
2025-12-11 05:20:02 +01:00
parent f97f9ebf03
commit b22fc5db6b

View File

@@ -2581,6 +2581,20 @@ fn strip_overstrike_for_manpage_syntax() {
.stderr(""); .stderr("");
} }
#[test]
fn show_all_shows_backspace_with_caret_notation() {
// --show-all should display backspace characters (not strip them)
bat()
.arg("--show-all")
.arg("--nonprintable-notation=caret")
.arg("--decorations=never")
.arg("overstrike.txt")
.assert()
.success()
.stdout(predicate::str::contains("^H"))
.stderr("");
}
#[test] #[test]
fn no_paging_arg() { fn no_paging_arg() {
bat() bat()