Testing\selftest\Changes.txt\r
\r
+2007-05-14 Gal\r
+ Fixed test case for bug 1639453.\r
+ Added test case for bug 1714088.\r
+ StringDifferencing: DiffColoring.cpp DiffColoring.h\r
+\r
2007-03-26 Gal\r
Fix and addition to line coloring tests\r
StringDifferencing: DiffColoring.cpp DiffColoring.h\r
&diffs);\r
count = diffs.GetSize();\r
CPPUNIT_ASSERT(count == 1);\r
- CPPUNIT_ASSERT(diffs[0] == wdiff(7, 6, 7, 10));\r
+ CPPUNIT_ASSERT(diffs[0] == wdiff(8, 7, 7, 10));\r
\r
// A more complex strings.\r
string1 = _T("[overlay_oid_origin, overlay_oid_target], [nil, nil]");\r
CPPUNIT_ASSERT(diffs[0] == wdiff(3, 2, 3, 3));\r
}\r
\r
+/**\r
+* @brief Bug #1683061: Displays not existing content.\r
+*/\r
+void DiffColoring::Bug1714088()\r
+{\r
+ wdiffarray diffs;\r
+ CString string1(_T("arg_separator.output = \";\""));\r
+ CString string2(_T(";arg_separator.output = \"&\""));\r
+ int count = 0;\r
+\r
+ // Compare case, all white spaces, whitespace break, char level\r
+ sd_ComputeWordDiffs(string1, string2,\r
+ true, WHITESPACE_COMPARE_ALL, 0, true,\r
+ &diffs);\r
+ count = diffs.GetSize();\r
+ CPPUNIT_ASSERT(count == 2);\r
+ CPPUNIT_ASSERT(diffs[0] == wdiff(26, 25, 0, 0));\r
+ CPPUNIT_ASSERT(diffs[1] == wdiff(26, 25, 25, 28));\r
+}\r
CPPUNIT_TEST( Bug1491334 );\r
CPPUNIT_TEST( Bug1639453 );\r
CPPUNIT_TEST( Bug1683061 );\r
+ CPPUNIT_TEST( Bug1714088 );\r
CPPUNIT_TEST_SUITE_END();\r
\r
public:\r
void Bug1491334();\r
void Bug1639453();\r
void Bug1683061();\r
+ void Bug1714088();\r
};\r
\r
#endif // _DIFF_COLORING_H_INCLUDED_\r