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.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index 4edc072e..28f30ddd 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -97,6 +97,17 @@ fn line_range_last_3() {
}
#[test]
+fn line_range_multiple() {
+ bat()
+ .arg("multiline.txt")
+ .arg("--line-range=1:2")
+ .arg("--line-range=4:4")
+ .assert()
+ .success()
+ .stdout("line 1\nline 2\nline 4\n");
+}
+
+#[test]
fn tabs_numbers() {
bat()
.arg("tabs.txt")