Package | Description |
---|---|
com.google.common.truth |
Truth is an open source, fluent testing framework for Java that is designed to make your test
assertions and failure messages more readable.
|
Modifier and Type | Method and Description |
---|---|
PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison |
PrimitiveFloatArraySubject.hasValuesNotWithin(float tolerance)
Deprecated.
Write a for loop over the values looking for mismatches (see this implementation
for an example)
|
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 © 2017. All rights reserved.