public void diff_commonSuffixTest() { diff_match_patchTest dmp = new diff_match_patchTest(); // Detect and remove any common suffix. Assert.AreEqual(0, dmp.diff_commonSuffix("abc", "xyz")); Assert.AreEqual(4, dmp.diff_commonSuffix("abcdef1234", "xyz1234")); Assert.AreEqual(4, dmp.diff_commonSuffix("1234", "xyz1234")); }
public void diff_commonSuffixTest() { diff_match_patchTest dmp = new diff_match_patchTest(); // Detect any common suffix. // Null case. Assert.AreEqual(0, dmp.diff_commonSuffix("abc", "xyz")); // Non-null case. Assert.AreEqual(4, dmp.diff_commonSuffix("abcdef1234", "xyz1234")); // Whole case. Assert.AreEqual(4, dmp.diff_commonSuffix("1234", "xyz1234")); }