Skip to content

Commit 31737b5

Browse files
Test for #258
1 parent 21244f6 commit 31737b5

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

test/diff-so-fancy.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,9 @@ if begin"
107107
run printf "%s" "$output"
108108
assert_line --index 5 --regexp "deleted:.*empty_file.txt"
109109
}
110+
111+
@test "Move with content change" {
112+
output=$( load_fixture "move_with_content_change" | $diff_so_fancy )
113+
run printf "%s" "$output"
114+
assert_line --index 1 --regexp "renamed:"
115+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/a.txt b/b.txt
2+
similarity index 84%
3+
rename from a.txt
4+
rename to b.txt
5+
index 6674929..1c877ab 100644
6+
--- a/a.txt
7+
+++ b/b.txt
8+
@@ -2,4 +2,4 @@ height: '10px',
9+
width: '100%',
10+
display: 'block',
11+
position: 'absolute',
12+
-bottom: '0',
13+
+bottom: '0'

0 commit comments

Comments
 (0)