on master help sign in
Test 'tabs' with 'numbers'
01984e1Lawrence Chou
tests/integration_tests.rs+23
@@ -96,6 +96,29 @@ fn line_range_last_3() {
96 .stdout("line 2\nline 3\nline 4\n");
96 .stdout("line 2\nline 3\nline 4\n");
97}
97}
98
98
99+#[test]
100+fn tabs_numbers() {
101+ bat()
102+ .arg("tabs.txt")
103+ .arg("--tabs=4")
104+ .arg("--style=numbers")
105+ .arg("--decorations=always")
106+ .assert()
107+ .success()
108+ .stdout("
109+ 1
110+ 2 1 2 3 4
111+ 3 1 ?
112+ 4 22 ?
113+ 5 333 ?
114+ 6 4444 ?
115+ 7 55555 ?
116+ 8 666666 ?
117+ 9 7777777 ?
118+ 10 88888888 ?
119+");
120+}
121+
99#[test]
122#[test]
100fn tabs_passthrough_wrapped() {
123fn tabs_passthrough_wrapped() {
101 bat()
124 bat()