@@ -1,7 +1,10 @@
1extern crate assert_cmd;
1extern crate assert_cmd;
3use assert_cmd::prelude::*;
5use assert_cmd::prelude::*;
4use std::process::Command;
6use std::process::Command;
6fn bat() -> Command {
9fn bat() -> Command {
7 let mut cmd = Command::main_binary().unwrap();
10 let mut cmd = Command::main_binary().unwrap();
@@ -12,6 +15,10 @@ fn bat() -> Command {
18+fn tester() -> BatTester {
16fn basic() {
23fn basic() {
@@ -96,6 +103,36 @@ fn line_range_last_3() {
96 .stdout("line 2\nline 3\nline 4\n");
103 .stdout("line 2\nline 3\nline 4\n");
107+fn tabs_passthrough_wrapped() {
108+ tester().test_snapshot("tabs_passthrough_wrapped", "full", 0, true);
112+fn tabs_4_wrapped() {
113+ tester().test_snapshot("tabs_4_wrapped", "full", 4, true);
117+fn tabs_8_wrapped() {
118+ tester().test_snapshot("tabs_8_wrapped", "full", 8, true);
122+fn tabs_passthrough() {
123+ tester().test_snapshot("tabs_passthrough", "full", 0, false);
128+ tester().test_snapshot("tabs_4", "full", 4, false);
133+ tester().test_snapshot("tabs_8", "full", 8, false);
100fn fail_non_existing() {
137fn fail_non_existing() {
101 bat().arg("non-existing-file").assert().failure();
138 bat().arg("non-existing-file").assert().failure();