### Question:
diff_match_patch { public static int match_main(String text, String pattern, int loc) { if (text == null || pattern == null) { throw new IllegalArgumentException("Null inputs. (match_main)"); } loc = Math.max(0, Math.min(loc, text.length())); if (text.equals(pattern)) { return 0; } else if (text.length() == 0) { return -1; } else if (loc + pattern.length() <= text.length() && text.substring(loc, loc + pattern.length()).equals(pattern)) { return loc; } else { return match_bitap(text, pattern, loc); } }  LinkedList<Diff> diff_main(String text1, String text2); LinkedList<Diff> diff_main(String text1, String text2,
            boolean checklines); int diff_commonPrefix(String text1, String text2); int diff_commonSuffix(String text1, String text2); void diff_cleanupSemantic(LinkedList<Diff> diffs); void diff_cleanupSemanticLossless(LinkedList<Diff> diffs); void diff_cleanupEfficiency(LinkedList<Diff> diffs); void diff_cleanupMerge(LinkedList<Diff> diffs); int diff_xIndex(LinkedList<Diff> diffs, int loc); String diff_prettyHtml(LinkedList<Diff> diffs); String diff_text1(LinkedList<Diff> diffs); String diff_text2(LinkedList<Diff> diffs); int diff_levenshtein(LinkedList<Diff> diffs); String diff_toDelta(LinkedList<Diff> diffs); LinkedList<Diff> diff_fromDelta(String text1, String delta); static int match_main(String text, String pattern, int loc); LinkedList<Patch> patch_make(String text1, String text2); LinkedList<Patch> patch_make(LinkedList<Diff> diffs); LinkedList<Patch> patch_make(String text1, String text2,
            LinkedList<Diff> diffs); LinkedList<Patch> patch_make(String text1, LinkedList<Diff> diffs); LinkedList<Patch> patch_deepCopy(LinkedList<Patch> patches); Object[] patch_apply(LinkedList<Patch> patches, String text); String patch_addPadding(LinkedList<Patch> patches); void patch_splitMax(LinkedList<Patch> patches); String patch_toText(List<Patch> patches); List<Patch> patch_fromText(String textline);  }### Answer:
@Test public void testSimple() { assertEquals(0, diff_match_patch.match_main("hello", "hello", 0)); assertEquals(-1, diff_match_patch.match_main("hello", "world", 0)); assertEquals( -1, diff_match_patch .match_main( "ReferencesLocker D: Measuring oral health: 18a conceptual framework.\\n\" + \n" + " \"Community Dent Health 1988, 5:3-18.", "world center", 0)); }
@Test @Ignore public void testRefs() { assertEquals( 10, diff_match_patch .match_main( "ReferencesLocker D: Measuring oral health: 18a conceptual framework.\\n\" + \n" + " \"Community Dent Health 1988, 5:3-18.", "Locker D: Measuring oral health: a conceptual framework.\n" + "Community Dent Health 1988, 5:3-18.", 0)); }