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 |
---|---|
PrimitiveDoubleArraySubject.TolerantPrimitiveDoubleArrayComparison |
PrimitiveDoubleArraySubject.hasValuesNotWithin(double 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 doubles). |
PrimitiveDoubleArraySubject.TolerantPrimitiveDoubleArrayComparison |
PrimitiveDoubleArraySubject.hasValuesWithin(double 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 doubles). |
Copyright © 2016. All rights reserved.