summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLawrence Chou <lawrencechou1024@gmail.com>2018-10-18 20:35:10 +0800
committerDavid Peter <sharkdp@users.noreply.github.com>2018-10-19 21:04:46 +0200
commit76e34b29ecbc65aef29cc0bf73912607041f6031 (patch)
tree88c8847ac3eef614c00425a96b04b6b71bc2544d /tests
parent01984e1d02f45a7607a85ea43f7bb96e79587c19 (diff)
Avoid empty line in snapshot
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/tabs.txt1
-rw-r--r--tests/integration_tests.rs38
2 files changed, 15 insertions, 24 deletions
diff --git a/tests/examples/tabs.txt b/tests/examples/tabs.txt
index ba3da432..f96c7a71 100644
--- a/tests/examples/tabs.txt
+++ b/tests/examples/tabs.txt
@@ -1,4 +1,3 @@
-
1 2 3 4
1 ?
22 ?
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index f9c6af87..fe7b960b 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -105,17 +105,15 @@ fn tabs_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 ?
+ .stdout(" 1 1 2 3 4
+ 2 1 ?
+ 3 22 ?
+ 4 333 ?
+ 5 4444 ?
+ 6 55555 ?
+ 7 666666 ?
+ 8 7777777 ?
+ 9 88888888 ?
");
}
@@ -128,8 +126,7 @@ fn tabs_passthrough_wrapped() {
.arg("--decorations=always")
.assert()
.success()
- .stdout("
- 1 2 3 4
+ .stdout(" 1 2 3 4
1 ?
22 ?
333 ?
@@ -150,8 +147,7 @@ fn tabs_4_wrapped() {
.arg("--decorations=always")
.assert()
.success()
- .stdout("
- 1 2 3 4
+ .stdout(" 1 2 3 4
1 ?
22 ?
333 ?
@@ -172,8 +168,7 @@ fn tabs_8_wrapped() {
.arg("--decorations=always")
.assert()
.success()
- .stdout("
- 1 2 3 4
+ .stdout(" 1 2 3 4
1 ?
22 ?
333 ?
@@ -194,8 +189,7 @@ fn tabs_passthrough() {
.arg("--decorations=always")
.assert()
.success()
- .stdout("
- 1 2 3 4
+ .stdout(" 1 2 3 4
1 ?
22 ?
333 ?
@@ -216,8 +210,7 @@ fn tabs_4() {
.arg("--decorations=always")
.assert()
.success()
- .stdout("
- 1 2 3 4
+ .stdout(" 1 2 3 4
1 ?
22 ?
333 ?
@@ -238,8 +231,7 @@ fn tabs_8() {
.arg("--decorations=always")
.assert()
.success()
- .stdout("
- 1 2 3 4
+ .stdout(" 1 2 3 4
1 ?
22 ?
333 ?