Asserts that the floating-point values are approximately equal.
AssertException otherwise
1 assertEquals(1, 1.01); 2 3 auto exception = expectThrows!AssertException(assertEquals(1, 1.1)); 4 5 assertEquals("expected: <1> but was: <1.1>", exception.msg);
See Implementation
Asserts that the floating-point values are approximately equal.