|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlejosunit.framework.Assert
lejosunit.framework.FloatAssert
The class FloatAssert
implements
all methods related to float and Math libs.
Use this class only if required,
as Math lib will be linked,
which requires much more memory.
Doubles are not yet supported, due to lejos limitations.
Constructor Summary | |
protected |
FloatAssert()
Protect constructor since it is a static only class |
Method Summary | |
static void |
assertEquals(float expected,
float actual,
float delta)
Asserts that two floats are equal concerning a delta. |
static void |
assertEquals(java.lang.String message,
float expected,
float actual,
float delta)
Asserts that two floats are equal concerning a delta. |
Methods inherited from class lejosunit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failSame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FloatAssert()
Method Detail |
public static void assertEquals(java.lang.String message, float expected, float actual, float delta)
message
- the assertion messageexpected
- the expected valueactual
- the actual value to be testeddelta
- the delta when two floats will be considered the samepublic static void assertEquals(float expected, float actual, float delta)
expected
- the expected valueactual
- the actual value to be testeddelta
- the delta when two floats will be considered the same
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |