More goodness to lib/diff.rb!
This commit is contained in:
parent
3285737917
commit
01c9636ffd
4 changed files with 54 additions and 20 deletions
|
@ -90,4 +90,10 @@ class DiffTest < Test::Unit::TestCase
|
|||
diff(a, b))
|
||||
end
|
||||
|
||||
def test_html_diff_with_tags
|
||||
a = ""
|
||||
b = "<div>foo</div>"
|
||||
assert_equal '<div><ins class="diffins">foo</ins></div>', diff(a, b)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue