From fa0cfcee2c7494e5025f6fb51152352282cbc032 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 29 Jan 2023 13:28:05 +0100 Subject: Add test --- tests/test-diff.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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(), "33x"); } + { + Diff d{"abc", "c"}; + EXPECT_EQ(d.get_xml(), "02"); + } } TEST_F(DiffTest, diff_create) -- cgit v1.2.3