Class PrimitiveDoubleArraySubject.DoubleArrayAsIterable

java.lang.Object
com.google.common.truth.IterableSubject.UsingCorrespondence<Double,Number>
com.google.common.truth.PrimitiveDoubleArraySubject.DoubleArrayAsIterable
Enclosing class:
PrimitiveDoubleArraySubject

public static final class PrimitiveDoubleArraySubject.DoubleArrayAsIterable extends IterableSubject.UsingCorrespondence<Double,Number>
A partially specified check for doing assertions on the array similar to the assertions supported for Iterable values, in which the elements of the array under test are compared to expected elements using either exact or tolerant double equality: see PrimitiveDoubleArraySubject.usingExactEquality() and PrimitiveDoubleArraySubject.usingTolerance(double). Call methods on this object to actually execute the check.

In the exact equality case, the methods on this class which take Number arguments only accept certain instances: again, see PrimitiveDoubleArraySubject.usingExactEquality() for details.

Author:
Christian Gruber (cgruber@israfil.net)