klyn.unittest.Assert.assertEquals
method

    public static assertEquals(expected as Float, actual as Float, delta as Float) as Void:

Description

Verifies that two float values are equal within a tolerance.

Parameters

Parameter | Description
--- | ---
`expected` | The expected value.
`actual` | The actual value.
`delta` | The accepted absolute difference.

Example

    import klyn.unittest

    Assert.assertEquals(1.25f, 1.2501f, 0.001f)