From 496e0bc04673b88bc6d9634ca45374b3c450557b Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sat, 20 Oct 2018 00:10:10 +0200 Subject: Allow for multiple line ranges See #23 --- tests/integration_tests.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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 @@ -96,6 +96,17 @@ fn line_range_last_3() { .stdout("line 2\nline 3\nline 4\n"); } +#[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() -- cgit v1.2.3