on master help sign in
Test 'tabs' with 'numbers'
commit01984e1d02f45a7607a85ea43f7bb96e79587c19 authorLawrence Chou <lawrencechou1024@gmail.com> dateThu 18 Oct 2018, 20:27 (8 years ago) parent5363905
1 file changed+23
tests/integration_tests.rs+23
tests/integration_tests.rs+23
@@ -96,6 +96,29 @@ fn line_range_last_3() {
9696 .stdout("line 2\nline 3\nline 4\n");
9797}
9898
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+
99122#[test]
100123fn tabs_passthrough_wrapped() {
101124 bat()