The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
should
mir
test
Should
!
T
should
(T value)
void
should
(T value, R expected, string file, int line)
void
should
(
alias
fun
= "a == b"
T
R
)
(
const
T
value
,
const
R
expected
,
string
file
= __FILE__
,
int
line
= __LINE__
)
Examples
1.0
.
should
!
"a < b"
(
1.3
);
Meta
Source
See Implementation
mir
test
functions
should
shouldApprox
structs
Should
ShouldApprox