mirror of
https://github.com/sharkdp/bat
synced 2024-11-26 22:00:30 +00:00
Add test for BAT_PAGING
This commit is contained in:
parent
26111950b3
commit
4b04f901fe
1 changed files with 11 additions and 0 deletions
|
@ -843,6 +843,17 @@ fn pager_failed_to_parse() {
|
||||||
.stderr(predicate::str::contains("Could not parse pager command"));
|
.stderr(predicate::str::contains("Could not parse pager command"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn env_var_bat_paging() {
|
||||||
|
bat()
|
||||||
|
.env("BAT_PAGER", "echo pager-output")
|
||||||
|
.env("BAT_PAGING", "always")
|
||||||
|
.arg("test.txt")
|
||||||
|
.assert()
|
||||||
|
.success()
|
||||||
|
.stdout(predicate::eq("pager-output\n"));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn diagnostic_sanity_check() {
|
fn diagnostic_sanity_check() {
|
||||||
bat()
|
bat()
|
||||||
|
|
Loading…
Reference in a new issue