summaryrefslogtreecommitdiffhomepage
path: root/tests/test-diff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-diff.cpp')
-rw-r--r--tests/test-diff.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-diff.cpp b/tests/test-diff.cpp
index 7061ef0..1704cfd 100644
--- a/tests/test-diff.cpp
+++ b/tests/test-diff.cpp
@@ -116,6 +116,10 @@ TEST_F(DiffTest, constructor)
Diff d{"0abc1", "0abxc1"};
EXPECT_EQ(d.get_xml(), "<diff><start>3</start><end>3</end><data>x</data></diff>");
}
+ {
+ Diff d{"abc", "c"};
+ EXPECT_EQ(d.get_xml(), "<diff><start>0</start><end>2</end><data/></diff>");
+ }
}
TEST_F(DiffTest, diff_create)