diff --git a/test/unit/diff_test.rb b/test/unit/diff_test.rb index ccb2abcc..c452486b 100755 --- a/test/unit/diff_test.rb +++ b/test/unit/diff_test.rb @@ -42,6 +42,15 @@ class DiffTest < Test::Unit::TestCase diff(a, b)) end + def test_html_diff_deleting_a_paragraph + a = "
this is a paragraph
\nthis is a second paragraph
\nthis is a third paragraph
" + b = "this is a paragraph
\nthis is a third paragraph
" + assert_equal( + "this is a paragraph
\nthis is a second paragraph
this is a third paragraph
foo bar
" b = "foo
bar
" @@ -87,7 +96,7 @@ class DiffTest < Test::Unit::TestCase def test_diff_for_tag_change a = "x" b = "x" - # FIXME sad, but true - this case produces an invalid XML. If handle this you can, strong your foo is. + # FIXME. xhtmldiff fails to detect any change here assert_equal "