diff options
-rw-r--r-- | tests/examples/single-line.txt | 1 | ||||
-rw-r--r-- | tests/integration_tests.rs | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/examples/single-line.txt b/tests/examples/single-line.txt new file mode 100644 index 00000000..87fa50e7 --- /dev/null +++ b/tests/examples/single-line.txt @@ -0,0 +1 @@ +Single Line
\ No newline at end of file diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 72499ea9..c0c282e3 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -129,6 +129,27 @@ fn concatenate_empty_first_and_last() { } #[test] +fn concatenate_single_line() { + bat() + .arg("single-line.txt") + .arg("single-line.txt") + .assert() + .success() + .stdout("Single LineSingle Line"); +} + +#[test] +fn concatenate_single_line_empty() { + bat() + .arg("single-line.txt") + .arg("empty.txt") + .arg("single-line.txt") + .assert() + .success() + .stdout("Single LineSingle Line"); +} + +#[test] fn line_numbers() { bat() .arg("multiline.txt") |