summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2018-10-20 00:10:10 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2018-10-20 10:44:13 +0200
commit496e0bc04673b88bc6d9634ca45374b3c450557b (patch)
treeeb0d2d7883b279a2a47c1ad16446bffa7a7af73c /tests
parent7082fd09f0e8a2504f3386587b77f538ee97fa72 (diff)
Allow for multiple line ranges
See #23
Diffstat (limited to 'tests')
-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")