Skip to content

Commit 6c1989f

Browse files
Add a test for #360
1 parent 24f8924 commit 6c1989f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/bugs.bats

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ empty_remove_highlight=""
1616
assert_output --partial "show: function($empty_remove_highlight)"
1717
assert_output --partial "{!Document} */ (WebInspector.Dialog._modalHostView.element.ownerDocument$empty_remove_highlight)"
1818
}
19+
20+
@test "File with space in the name (#360)" {
21+
output=$( load_fixture "file_with_space" | $diff_so_fancy )
22+
run printf "%s" "$output"
23+
24+
assert_line --index 1 --regexp "added:.*a b"
25+
}

test/fixtures/file_with_space.diff

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
diff --git a/a b b/a b
2+
new file mode 100644
3+
index 0000000..e69de29

0 commit comments

Comments
 (0)