Artifact Content
Not logged in

Artifact 3cf05b87d24962dc03115b4abcaf4ad2beddbc31


tricks.test

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 Thu Nov 25 12:15:08 2010