semitwistdtools ~master (2015-08-17T23:08:05Z)
Home
Dub
Repo
assertPred
semitwist
util
unittests
Undocumented in source. Be warned that the author may not have intended to support it.
void
assertPred
(L lhs, R rhs, string msg, string file, size_t line)
void
assertPred
(L lhs, R rhs, string msg, string file, size_t line)
void
assertPred
(
string
func
string
expected
L
R
)
(
L
lhs
,
R
rhs
,
lazy
string
msg
= null
,
string
file
= __FILE__
,
size_t
line
= __LINE__
)
if
(
func
== "opCmp" &&
(
expected
== "<" ||
expected
== "=="
||
expected
== ">"
)
&&
__traits(
compiles
,
lhs.opCmp
(
rhs
))
&&
isPrintable
!
L
&&
isPrintable
!
R
)
void
assertPred
(L lhs, R rhs, string msg, string file, size_t line)
void
assertPred
(L lhs, R rhs, E expected, string msg, string file, size_t line)
void
assertPred
(L lhs, R rhs, E expected, string msg, string file, size_t line)
void
assertPred
(T a)
void
assertPred
(T a, U b)
void
assertPred
(T args)
Meta
Source
See Implementation
semitwist
util
unittests
aliases
unittestSection_demangle
unittestSection_mangledName
unittestSemiTwistDLib
functions
_deferAssert
_deferAssertException
_deferEnsure
_deferEnsureException
_deferEnsureThrows
assertPred
flushAsserts
getAssertCount
resetAssertCount
unittestSection
writeUnittestSection
templates
deferAssert
deferEnsure
deferEnsureThrows
variables
autoThrow