Home | History | Annotate | Download | only in plaintext

Lines Matching refs:patch_apply

832     Object[] results = dmp.patch_apply(patches, "The quick brown fox jumps over the lazy dog.");
835 assertEquals("patch_apply: Exact match.", "That quick brown fox jumped over a lazy dog.\ttrue\ttrue", resultStr);
837 results = dmp.patch_apply(patches, "The quick red rabbit jumps over the tired tiger.");
840 assertEquals("patch_apply: Partial match.", "That quick red rabbit jumped over a tired tiger.\ttrue\ttrue", resultStr);
842 results = dmp.patch_apply(patches, "I am the very model of a modern major general.");
845 assertEquals("patch_apply: Failed match.", "I am the very model of a modern major general.\tfalse\tfalse", resultStr);
848 results = dmp.patch_apply(patches, "x123456789012345678901234567890-----++++++++++-----123456789012345678901234567890y");
851 assertEquals("patch_apply: Big delete, small change.", "xabcy\ttrue\ttrue", resultStr);
854 results = dmp.patch_apply(patches, "x12345678901234567890---------------++++++++++---------------12345678901234567890y");
857 assertEquals("patch_apply: Big delete, big change 1.", "xabc12345678901234567890---------------++++++++++---------------12345678901234567890y\tfalse\ttrue", resultStr);
861 results = dmp.patch_apply(patches, "x12345678901234567890---------------++++++++++---------------12345678901234567890y");
864 assertEquals("patch_apply: Big delete, big change 2.", "xabcy\ttrue\ttrue", resultStr);
871 results = dmp.patch_apply(patches, "ABCDEFGHIJKLMNOPQRSTUVWXYZ--------------------1234567890");
880 dmp.patch_apply(patches, "");
881 assertEquals("patch_apply: No side effects.", patchStr, dmp.patch_toText(patches));
885 dmp.patch_apply(patches, "The quick brown fox jumps over the lazy dog.");
886 assertEquals("patch_apply: No side effects with major delete.", patchStr, dmp.patch_toText(patches));
889 results = dmp.patch_apply(patches, "");
892 assertEquals("patch_apply: Edge exact match.", "test\ttrue", resultStr);
895 results = dmp.patch_apply(patches, "XY");
898 assertEquals("patch_apply: Near edge exact match.", "XtestY\ttrue", resultStr);
901 results = dmp.patch_apply(patches, "x");
904 assertEquals("patch_apply: Edge partial match.", "x123\ttrue", resultStr);