22 #ifndef DIFF_MATCH_PATCH_TEST_H
23 #define DIFF_MATCH_PATCH_TEST_H
31 void testDiffCommonPrefix();
32 void testDiffCommonSuffix();
33 void testDiffCommonOverlap();
34 void testDiffHalfmatch();
35 void testDiffLinesToChars();
36 void testDiffCharsToLines();
37 void testDiffCleanupMerge();
38 void testDiffCleanupSemanticLossless();
39 void testDiffCleanupSemantic();
40 void testDiffCleanupEfficiency();
41 void testDiffPrettyHtml();
44 void testDiffXIndex();
45 void testDiffLevenshtein();
46 void testDiffBisect();
50 void testMatchAlphabet();
51 void testMatchBitap();
56 void testPatchFromText();
57 void testPatchToText();
58 void testPatchAddContext();
60 void testPatchSplitMax();
61 void testPatchAddPadding();
62 void testPatchApply();
68 void assertEquals(
const QString &strCase,
int n1,
int n2);
69 void assertEquals(
const QString &strCase,
const QString &s1,
const QString &s2);
70 void assertEquals(
const QString &strCase,
const Diff &d1,
const Diff &d2);
71 void assertEquals(
const QString &strCase,
const QList<Diff> &list1,
const QList<Diff> &list2);
72 void assertEquals(
const QString &strCase,
const QList<QVariant> &list1,
const QList<QVariant> &list2);
73 void assertEquals(
const QString &strCase,
const QVariant &var1,
const QVariant &var2);
74 void assertEquals(
const QString &strCase,
const QMap<QChar, int> &m1,
const QMap<QChar, int> &m2);
75 void assertEquals(
const QString &strCase,
const QStringList &list1,
const QStringList &list2);
76 void assertTrue(
const QString &strCase,
bool value);
77 void assertFalse(
const QString &strCase,
bool value);
78 void assertEmpty(
const QString &strCase,
const QStringList &list);
81 QStringList diff_rebuildtexts(QList<Diff> diffs);
92 #endif // DIFF_MATCH_PATCH_TEST_H