unit-threaded v0.7.6 (2017-03-08T13:17:40Z)
Home
Dub
Repo
shouldApproxEqual
unit_threaded
should
Undocumented in source. Be warned that the author may not have intended to support it.
void
shouldApproxEqual
(
V
E
)
(
in
V
value
,
in
E
expected
,
string
file
= __FILE__
,
size_t
line
= __LINE__
)
if
(
!
isObject
!
V
&&
(
isFloatingPoint
!
V
||
isFloatingPoint
!
E
)
&&
is
(
typeof
(
value
==
expected
) ==
bool
)
)
Examples
1.0
.
shouldApproxEqual
(
1.0001
);
Meta
Source
See Implementation
unit_threaded
should
classes
UnitTestException
enums
isLikeAssociativeArray
functions
fail
shouldApproxEqual
shouldBeEmpty
shouldBeFalse
shouldBeGreaterThan
shouldBeIn
shouldBeNull
shouldBeSameSetAs
shouldBeSmallerThan
shouldBeTrue
shouldEqual
shouldNotBeEmpty
shouldNotBeIn
shouldNotBeNull
shouldNotBeSameSetAs
shouldNotEqual
shouldNotThrow
shouldThrow
shouldThrowExactly
shouldThrowWithMessage