tricks.test

Authors:
k.inaba

License:
NYSL 0.9982 http://www.kmonos.net/nysl/

Hepler routines for unittesting.

TODO:
Is there any clean way to implement "assert_compiles" and "assert_not_compile"?

void assert_throw (ExcT = Throwable, T, string fn = __FILE__, size_t ln = __LINE__)(lazy T t, string msg = "");
Unittest helper that asserts an expression must throw something

T assert_nothrow (T, string fn = __FILE__, size_t ln = __LINE__)(lazy T t, string msg = "");
Unittest helper that asserts an expression must not throw anything

alias assert_eq ;
asserts two operands are ==

alias assert_ne ;
asserts two operands are !=

alias assert_lt ;
asserts two operands are <

alias assert_le ;
asserts two operands are <=

alias assert_gt ;
asserts two operands are >

alias assert_ge ;
asserts two operands are >=

Page was generated with on Wed Nov 24 21:12:49 2010