mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 02:01:05 +00:00
Integration tests for single-line files
This commit is contained in:
parent
cec9cc073c
commit
906774e6d3
1
tests/examples/single-line.txt
vendored
Normal file
1
tests/examples/single-line.txt
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
Single Line
|
@ -128,6 +128,27 @@ fn concatenate_empty_first_and_last() {
|
|||||||
.stdout("hello world\n");
|
.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]
|
#[test]
|
||||||
fn line_numbers() {
|
fn line_numbers() {
|
||||||
bat()
|
bat()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user