Skip to content

Commit 1af2be4

Browse files
Add a test for #366
1 parent b18ec02 commit 1af2be4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

test/bugs.bats

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,11 @@ empty_remove_highlight=""
2323

2424
assert_line --index 1 --regexp "added:.*a b"
2525
}
26+
27+
@test "Vanilla diff with add/remove empty lines (#366)" {
28+
output=$( load_fixture "add_remove_empty_lines" | $diff_so_fancy )
29+
run printf "%s" "$output"
30+
31+
assert_line --index 5 --partial "[1;32"
32+
assert_line --index 8 --partial "[1;31"
33+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--- one.txt 2020-04-23 10:15:29.193452325 -0700
2+
+++ two.txt 2020-04-23 10:15:37.634463619 -0700
3+
@@ -1,5 +1,5 @@
4+
1
5+
+
6+
2
7+
3
8+
-
9+
4

0 commit comments

Comments
 (0)