diff --git a/src/test/java/blogspot/software_and_algorithms/stern_library/optimization/HungarianAlgorithmTest.java b/src/test/java/blogspot/software_and_algorithms/stern_library/optimization/HungarianAlgorithmTest.java index def50a8..7d588ae 100755 --- a/src/test/java/blogspot/software_and_algorithms/stern_library/optimization/HungarianAlgorithmTest.java +++ b/src/test/java/blogspot/software_and_algorithms/stern_library/optimization/HungarianAlgorithmTest.java @@ -93,6 +93,11 @@ public void testInvalidInput() { new double[] { 3, Double.POSITIVE_INFINITY } }); Assert.fail(); } catch (IllegalArgumentException e) {} + try { + new HungarianAlgorithm(new double[][] { new double[] { 1, 2 }, + new double[] { 3, Double.NaN } }); + Assert.fail(); + } catch (IllegalArgumentException e) {} try { new HungarianAlgorithm(new double[][] { new double[] { 1, 2 }, new double[] { 3, 1.0 / 0.0 } });