public class PrimitiveFloatArraySubject extends AbstractArraySubject<PrimitiveFloatArraySubject,float[]>
float[].
Note: this class deprecates some common methods because the operation of equality and
comparison on floating point numbers requires additional specification. Alternatives
equality tests are provided.Subject.HasFieldfailureStrategy| Modifier and Type | Method | Description |
|---|---|---|
void |
isEqualTo(Object expected) |
Deprecated.
use
#isEqualTo(Object, double) |
void |
isEqualTo(Object expected,
float tolerance) |
A proposition that the provided float[] is an array of the same length and type, and
contains elements such that each element in
expected is equal to each element
in the subject, and in the same position. |
void |
isNotEqualTo(Object expected) |
Deprecated.
use
#isNotEqualTo(Object, double) |
void |
isNotEqualTo(Object expectedArray,
float tolerance) |
|
protected List<Float> |
listRepresentation() |
|
protected String |
underlyingType() |
getDisplaySubject, hasLength, isEmpty, isNotEmpty, namedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcheck, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isInstanceOf, isNotA, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeledprotected String underlyingType()
@Deprecated public void isEqualTo(Object expected)
#isEqualTo(Object, double)UnsupportedOperationException.isEqualTo in class Subject<AbstractArraySubject<PrimitiveFloatArraySubject,float[]>,float[]>public void isEqualTo(Object expected, float tolerance)
expected is equal to each element
in the subject, and in the same position.@Deprecated public void isNotEqualTo(Object expected)
#isNotEqualTo(Object, double)UnsupportedOperationException.isNotEqualTo in class Subject<AbstractArraySubject<PrimitiveFloatArraySubject,float[]>,float[]>public void isNotEqualTo(Object expectedArray, float tolerance)
Copyright © 2019. All rights reserved.