Class PrimitiveFloatArraySubject.FloatArrayAsIterable

java.lang.Object
com.google.common.truth.IterableSubject.UsingCorrespondence<Float,Number>
com.google.common.truth.PrimitiveFloatArraySubject.FloatArrayAsIterable
Enclosing class:
PrimitiveFloatArraySubject

public static final class PrimitiveFloatArraySubject.FloatArrayAsIterable extends IterableSubject.UsingCorrespondence<Float,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 float equality: see PrimitiveFloatArraySubject.usingExactEquality() and PrimitiveFloatArraySubject.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 PrimitiveFloatArraySubject.usingExactEquality() for details.

Author:
Christian Gruber (cgruber@israfil.net)