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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user