SourceDSL { public static FloatsDSL floats() { return new FloatsDSL(); }  static LongsDSL longs(); static IntegersDSL integers(); static DoublesDSL doubles(); static FloatsDSL floats(); static CharactersDSL characters(); static StringsDSL strings(); static ListsDSL lists(); static MapsDSL maps(); static ArraysDSL arrays(); static BigIntegersDSL bigIntegers(); static BigDecimalsDSL bigDecimals(); static ArbitraryDSL arbitrary(); static DatesDSL dates(); static LocalDatesDSL localDates(); static BooleansDSL booleans();  }
@Test public void shouldGenerateFloatNegativeInfinityAndNegativeZero() { Gen<Float> testee = floats().negative(); assertThatGenerator(testee).generatesTheMinAndMax(-0f, Float.NEGATIVE_INFINITY); }
@Test public void shouldGenerateDistinctFloats() { Gen<Float> testee = floats().any(); assertThatGenerator(testee).generatesAtLeastNDistinctValues(1000); }
@Test public void shouldGenerateFloatPositiveInfinityAndZero() { Gen<Float> testee = floats().positive(); assertThatGenerator(testee).generatesTheMinAndMax(0f,Float.POSITIVE_INFINITY); }
@Test public void shouldGenerateFloatZeroAndOne() { Gen<Float> testee = floats().fromZeroToOne(); assertThatGenerator(testee).generatesTheMinAndMax(0f, 1f); }
@Test public void shouldRespectFloatsUpToAndIncludingBound() { Gen<Float> testee = floats().from(0f).upToAndIncluding(42f); assertThatGenerator(testee).generatesTheMinAndMax(0f, 42f); }