Пример #1
0
 @Test(expectedExceptions = IllegalArgumentException.class)
 public void checkGetAdjustedEpsilonException() {
   EpsilonFromK.getAdjustedEpsilon(1);
 }
Пример #2
0
 @Test
 public void checkGetAdjustedEpsilon() {
   double eps = EpsilonFromK.getAdjustedEpsilon(227);
   assertEquals(eps, .01, .005);
 }