1
0
mirror of https://github.com/sharkdp/bat synced 2026-06-09 10:03:18 +00:00

Integration tests for single-line files

This commit is contained in:
sharkdp
2019-02-10 08:52:38 +01:00
committed by David Peter
parent cec9cc073c
commit 906774e6d3
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Single Line
+21
View File
@@ -128,6 +128,27 @@ fn concatenate_empty_first_and_last() {
.stdout("hello world\n");
}
#[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()