GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — implemented multi algorithm patch test · marisaroman/java-diff-utils@894b8ba

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java-diff-utils/src/test/java/com/github/difflib/patch
    • PatchWithAllDiffAlgorithmsTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎java-diff-utils/src/test/java/com/github/difflib/patch/PatchWithAllDiffAlgorithmsTest.java‎

Copy file name to clipboardExpand all lines: java-diff-utils/src/test/java/com/github/difflib/patch/PatchWithAllDiffAlgorithmsTest.java
+1-26Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -107,30 +107,5 @@ public void testPatch_Serializable(DiffAlgorithmFactory factory) throws IOExcept
107107
fail(e.getMessage());
108108
}
109109

110-
}
111-
112-
@ParameterizedTest
113-
@MethodSource("provideAlgorithms")
114-
public void testPatch_Change_withExceptionProcessor(DiffAlgorithmFactory factory) {
115-
DiffUtils.withDefaultDiffAlgorithmFactory(factory);
116-
117-
final List<String> changeTest_from = Arrays.asList("aaa", "bbb", "ccc", "ddd");
118-
final List<String> changeTest_to = Arrays.asList("aaa", "bxb", "cxc", "ddd");
119-
120-
final Patch<String> patch = DiffUtils.diff(changeTest_from, changeTest_to);
121-
122-
changeTest_from.set(2, "CDC");
123-
124-
patch.withConflictOutput(Patch.CONFLICT_PRODUCES_MERGE_CONFLICT);
125-
126-
try {
127-
List<String> data = DiffUtils.patch(changeTest_from, patch);
128-
assertEquals(9, data.size());
129-
130-
assertEquals(Arrays.asList("aaa", "<<<<<< HEAD", "bbb", "CDC", "======", "bbb", "ccc", ">>>>>>> PATCH", "ddd"), data);
131-
132-
} catch (PatchFailedException e) {
133-
fail(e.getMessage());
134-
}
135-
}
110+
}
136111
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.