Skip to content

Commit d78c484

Browse files
committed
Adding tests that cover last bug fix.
1 parent 8381322 commit d78c484

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bats
2+
3+
load bats-shared
4+
5+
@test "correct file trailing lines" {
6+
run $EXE_FILE $CORRECT_FILE $RESULT_FILE
7+
[ "$status" -eq 1 ]
8+
echo "$output" | diff -abB - "${ERROR_FILE}1"
9+
}
10+
11+
@test "result file trailing lines" {
12+
run $EXE_FILE $RESULT_FILE $CORRECT_FILE
13+
[ "$status" -eq 1 ]
14+
echo "$output" | diff -abB - "${ERROR_FILE}2"
15+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Lorem ipsum dolor sit amet consectetuer porta eu nulla eu Nullam.
2+
Vivamus Nulla elit justo lacinia Nulla ornare volutpat mauris elit fringilla.
3+
Quis nisl montes tortor justo sagittis ac ligula urna porttitor egestas.
4+
Porttitor est at ut Cras odio nulla pretium consectetuer nec gravida.
5+
Donec odio nibh non velit Quisque hendrerit urna.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Lorem ipsum dolor sit amet consectetuer porta eu nulla eu Nullam.
2+
Something else.
3+
Quis nisl montes tortor justo sagittis ac ligula urna porttitor egestas.

0 commit comments

Comments
 (0)