Diff
Not logged in

Differences From Artifact [de7560f1ecccee67]:

To Artifact [314aad0104b85557]:


54 { 54 { 55 void assertOp(A, B, string fn=__FILE__, size_t ln=__LINE__)(A a, B b, st 55 void assertOp(A, B, string fn=__FILE__, size_t ln=__LINE__)(A a, B b, st 56 { 56 { 57 try 57 try 58 { if( mixin("a"~op~"b") ) return; } 58 { if( mixin("a"~op~"b") ) return; } 59 catch(Throwable e) 59 catch(Throwable e) 60 { onAssertErrorMsg(fn, ln, msg.length ? msg : "exception 60 { onAssertErrorMsg(fn, ln, msg.length ? msg : "exception 61 onAssertErrorMsg(fn, ln, msg.length ? msg : to!string(a)~" !"~op | 61 onAssertErrorMsg(fn, ln, msg.length ? msg : to!string(a)~" !"~op 62 } 62 } 63 } 63 } 64 64 65 alias assertOp!(`==`) assert_eq; 65 alias assertOp!(`==`) assert_eq; 66 alias assertOp!(`!=`) assert_ne; 66 alias assertOp!(`!=`) assert_ne; 67 alias assertOp!(`<`) assert_lt; 67 alias assertOp!(`<`) assert_lt; 68 alias assertOp!(`<=`) assert_le; 68 alias assertOp!(`<=`) assert_le;