diff options
author | sharkdp <davidpeter@web.de> | 2018-10-20 00:10:10 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2018-10-20 10:44:13 +0200 |
commit | 496e0bc04673b88bc6d9634ca45374b3c450557b (patch) | |
tree | eb0d2d7883b279a2a47c1ad16446bffa7a7af73c /tests | |
parent | 7082fd09f0e8a2504f3386587b77f538ee97fa72 (diff) |
Allow for multiple line ranges
See #23
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests.rs | 11 |
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") |