summaryrefslogtreecommitdiffstats
path: root/tests/integration_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_tests.rs')
-rw-r--r--tests/integration_tests.rs36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index d2c8501f..18f16123 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -1123,6 +1123,42 @@ fn show_all_mode() {
}
#[test]
+fn no_paging_arg() {
+ bat()
+ .arg("--no-paging")
+ .arg("--color=never")
+ .arg("--decorations=never")
+ .arg("single-line.txt")
+ .assert()
+ .success()
+ .stdout("Single Line");
+}
+
+#[test]
+fn no_paging_short_arg() {
+ bat()
+ .arg("-P")
+ .arg("--color=never")
+ .arg("--decorations=never")
+ .arg("single-line.txt")
+ .assert()
+ .success()
+ .stdout("Single Line");
+}
+
+#[test]
+fn no_pager_arg() {
+ bat()
+ .arg("--no-pager")
+ .arg("--color=never")
+ .arg("--decorations=never")
+ .arg("single-line.txt")
+ .assert()
+ .success()
+ .stdout("Single Line");
+}
+
+#[test]
fn plain_mode_does_not_add_nonexisting_newline() {
bat()
.arg("--paging=never")