Modifier and Type | Method and Description |
---|---|
PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison |
PrimitiveFloatArraySubject.hasValuesNotWithin(float tolerance)
Prepares for a check that the subject and object are arrays either (a) of the different
lengths, or (b) of the same length but where the values at at least one corresponding position
in each array are finite values not within
tolerance of each other, that is
assertThat(actual[i]).isNotWithin(tolerance).of(expected[i]) passes for at least one
i (see the isNotWithin assertion for floats). |
PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison |
PrimitiveFloatArraySubject.hasValuesWithin(float tolerance)
Prepares for a check that the subject and object are arrays both (a) of the same length, and
(b) where the values at all corresponding positions in each array are finite values within
tolerance of each other, that is
assertThat(actual[i]).isWithin(tolerance).of(expected[i]) passes for all i
(see the isWithin assertion for floats). |
Copyright © 2015. All Rights Reserved.