/** Uniform distribution, uniform data, small dataset */
@Test
public void testOneSampleUniformUniformSmallSample() {
final KolmogorovSmirnovTest test = new KolmogorovSmirnovTest();
final UniformRealDistribution unif = new UniformRealDistribution(-0.5, 0.5);
final double[] shortUniform = new double[20];
System.arraycopy(uniform, 0, shortUniform, 0, 20);
Assert.assertEquals(4.117594598618268E-9, test.kolmogorovSmirnovTest(unif, shortUniform, false), TOLERANCE);
Assert.assertTrue(test.kolmogorovSmirnovTest(unif, shortUniform, 0.05));
Assert.assertEquals(0.6610459, test.kolmogorovSmirnovStatistic(unif, shortUniform), TOLERANCE);