Skip to content

Commit 5707f0b

Browse files
committed
Add 2 test cases; one of which a failing test
1 parent c7a3a82 commit 5707f0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/HtmlDiff.Tests/HtmlDiffSpecTests.cs

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public class HtmlDiffSpecTests
4040
"Some <strong><i>formatted</i></strong> text",
4141
"Some formatted text",
4242
"Some <ins class='mod'>formatted</ins> text")]
43+
[TestCase(
44+
"<table><tr><td>col1</td><td>col2</td></tr><tr><td>Data 1</td><td>Data 2</td></tr></table>",
45+
"<table><tr><td>col1</td><td>col2</td></tr></table>",
46+
"<table><tr><td>col1</td><td>col2</td></tr><tr><td><del class='diffdel'>Data 1</del></td><td><del class='diffdel'>Data 2</del></td></tr></table>")]
47+
[TestCase(
48+
"text",
49+
"<span style=\"text-decoration: line-through;\">text</span>",
50+
"<span style=\"text-decoration: line-through;\"><ins class='mod'>text</ins></span>")]
4351

4452
// TODO: Don't speak Chinese, this needs to be validated
4553
[TestCase("这个是中文内容, CSharp is the bast", "这是中国语内容,CSharp is the best language.",

0 commit comments

Comments
 (0)