mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
Test 'tabs' with 'numbers'
This commit is contained in:
parent
536390509f
commit
01984e1d02
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user