mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-19 12:26:38 +02:00
@@ -415,6 +415,30 @@ fn pager_value_bat() {
|
||||
.failure();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pager_most() {
|
||||
bat()
|
||||
.env("PAGER", "most")
|
||||
.arg("--paging=always")
|
||||
.arg("test.txt")
|
||||
.assert()
|
||||
.success()
|
||||
.stderr(predicate::eq("WARNING: Ignoring PAGER=\"most\": Coloring not supported. Override with BAT_PAGER=\"most\" or --pager \"most\"\n").normalize())
|
||||
.stdout(predicate::eq("hello world\n").normalize());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pager_most_with_arg() {
|
||||
bat()
|
||||
.env("PAGER", "most -w")
|
||||
.arg("--paging=always")
|
||||
.arg("test.txt")
|
||||
.assert()
|
||||
.success()
|
||||
.stderr(predicate::eq("WARNING: Ignoring PAGER=\"most -w\": Coloring not supported. Override with BAT_PAGER=\"most -w\" or --pager \"most -w\"\n").normalize())
|
||||
.stdout(predicate::eq("hello world\n").normalize());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alias_pager_disable() {
|
||||
bat()
|
||||
|
Reference in New Issue
Block a user