2728293031323334353637
} } @Test public void floatSequence() { SequenceFunction function = new SequenceFunction(new NumberSequence(1.2f, 1)); for (int i=1; i<=3; i++) { assertEquals("floats should be equal", function.generateValue(), (float) i+(.2F)); } }
3637383940414243444546
} } @Test public void doubleSequence() { SequenceFunction function = new SequenceFunction(new NumberSequence(1.23d, 2)); for (int i=1; i<=5; i=i+2) { assertEquals("doubles should be equal", function.generateValue(), (double) i+(.23d)); } }