diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 8822eab7..078daaf8 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -2581,6 +2581,20 @@ fn strip_overstrike_for_manpage_syntax() { .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] fn no_paging_arg() { bat()