Skip to content

Commit

Permalink
Adapt expected values of the core test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaglam committed Feb 20, 2023
1 parent 3aee3a6 commit 4e004fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/test/java/de/jplag/BasicFunctionalityTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ void testPartialPlagiarism() throws ExitException {
.forEach(comparison -> assertEquals(0, comparison.similarity(), DELTA));

// Hard coded assertions on selected comparisons
assertEquals(0.238, getSelectedPercent(result, "A", "B"), DELTA);
assertEquals(0.237, getSelectedPercent(result, "A", "B"), DELTA);
assertEquals(0.996, getSelectedPercent(result, "A", "C"), DELTA);
assertEquals(0.748, getSelectedPercent(result, "A", "D"), DELTA);
assertEquals(0.238, getSelectedPercent(result, "B", "C"), DELTA);
assertEquals(0.283, getSelectedPercent(result, "B", "D"), DELTA);
assertEquals(0.748, getSelectedPercent(result, "C", "D"), DELTA);
assertEquals(0.751, getSelectedPercent(result, "A", "D"), DELTA);
assertEquals(0.237, getSelectedPercent(result, "B", "C"), DELTA);
assertEquals(0.281, getSelectedPercent(result, "B", "D"), DELTA);
assertEquals(0.751, getSelectedPercent(result, "C", "D"), DELTA);

// More detailed assertions for the plagiarism in A-D
var biggestMatch = getSelectedComparison(result, "A", "D");
assertEquals(0.946, biggestMatch.get().maximalSimilarity(), DELTA);
assertEquals(0.619, biggestMatch.get().minimalSimilarity(), DELTA);
assertEquals(0.622, biggestMatch.get().minimalSimilarity(), DELTA);
assertEquals(11, biggestMatch.get().matches().size());
}

Expand Down

0 comments on commit 4e004fb

Please sign in to comment.