Skip to content

Commit b94d18b

Browse files
committed
improved test coverage
1 parent 2d8fa6f commit b94d18b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/org/cicirello/sequences/distance/SequenceDistanceTests.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,17 @@ private void helperKendallTauDistanceExceptionsDiffElements(final KendallTauSequ
958958
IllegalArgumentException.class,
959959
() -> d.distance(bool1, bool2)
960960
);
961+
final String diffCounts1 = "ababa";
962+
final String diffCounts2 = "babab";
963+
thrown = assertThrows(
964+
IllegalArgumentException.class,
965+
() -> d.distance(diffCounts1, diffCounts2)
966+
);
967+
final String diffCounts3 = "aaaab";
968+
thrown = assertThrows(
969+
IllegalArgumentException.class,
970+
() -> d.distance(diffCounts1, diffCounts3)
971+
);
961972
}
962973

963974
@Test

0 commit comments

Comments
 (0)