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.HasField
failureStrategy
Modifier and Type | Method and 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, named
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hasField, hashCode, internalCustomName, is, isA, isInstanceOf, isNotA, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled
protected String underlyingType()
@Deprecated public void isEqualTo(Object expected)
#isEqualTo(Object, double)
UnsupportedOperationException
.isEqualTo
in class Subject<PrimitiveFloatArraySubject,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<PrimitiveFloatArraySubject,float[]>
public void isNotEqualTo(Object expectedArray, float tolerance)
Copyright © 2014. All rights reserved.