@@ -1,10 +1,7 @@
1extern crate assert_cmd;
1extern crate assert_cmd;
5use assert_cmd::prelude::*;
3use assert_cmd::prelude::*;
6use std::process::Command;
4use std::process::Command;
9fn bat() -> Command {
6fn bat() -> Command {
10 let mut cmd = Command::main_binary().unwrap();
7 let mut cmd = Command::main_binary().unwrap();
@@ -15,10 +12,6 @@ fn bat() -> Command {
18−fn tester() -> BatTester {
23fn basic() {
16fn basic() {
@@ -105,32 +98,140 @@ fn line_range_last_3() {
107fn tabs_passthrough_wrapped() {
100fn tabs_passthrough_wrapped() {
108− tester().test_snapshot("tabs_passthrough_wrapped", "full", 0, true);
101+ bat()
104+ .arg("--wrap=character")
105+ .arg("--style=plain")
106+ .arg("--decorations=always")
112fn tabs_4_wrapped() {
123fn tabs_4_wrapped() {
113− tester().test_snapshot("tabs_4_wrapped", "full", 4, true);
124+ bat()
127+ .arg("--wrap=character")
128+ .arg("--style=plain")
129+ .arg("--decorations=always")
117fn tabs_8_wrapped() {
146fn tabs_8_wrapped() {
118− tester().test_snapshot("tabs_8_wrapped", "full", 8, true);
147+ bat()
150+ .arg("--wrap=character")
151+ .arg("--style=plain")
152+ .arg("--decorations=always")
122fn tabs_passthrough() {
169fn tabs_passthrough() {
123− tester().test_snapshot("tabs_passthrough", "full", 0, false);
170+ bat()
173+ .arg("--wrap=never")
174+ .arg("--style=plain")
175+ .arg("--decorations=always")
127fn tabs_4() {
192fn tabs_4() {
128− tester().test_snapshot("tabs_4", "full", 4, false);
193+ bat()
196+ .arg("--wrap=never")
197+ .arg("--style=plain")
198+ .arg("--decorations=always")
132fn tabs_8() {
215fn tabs_8() {
133− tester().test_snapshot("tabs_8", "full", 8, false);
216+ bat()
219+ .arg("--wrap=never")
220+ .arg("--style=plain")
221+ .arg("--decorations=always")