Test 'tabs' with 'numbers'

This commit is contained in:
Lawrence Chou 2018-10-18 20:27:04 +08:00 committed by David Peter
parent 536390509f
commit 01984e1d02
1 changed files with 23 additions and 0 deletions

View File

@ -96,6 +96,29 @@ fn line_range_last_3() {
.stdout("line 2\nline 3\nline 4\n");
}
#[test]
fn tabs_numbers() {
bat()
.arg("tabs.txt")
.arg("--tabs=4")
.arg("--style=numbers")
.arg("--decorations=always")
.assert()
.success()
.stdout("
1
2 1 2 3 4
3 1 ?
4 22 ?
5 333 ?
6 4444 ?
7 55555 ?
8 666666 ?
9 7777777 ?
10 88888888 ?
");
}
#[test]
fn tabs_passthrough_wrapped() {
bat()