Differences From Artifact [de7560f1ecccee67]:
- File
tricks/test.d
- 2010-11-09 06:19:11 - part of checkin [d78d700f7a] on branch trunk - tenuki REPL bug-fix (now we can continue using REPL after a syntax error) and file interpreter mode. (user: kinaba) [annotate]
To Artifact [314aad0104b85557]:
- File
tricks/test.d
- 2010-11-09 07:27:21 - part of checkin [0f02103885] on branch trunk - let, var, def became layer-neutral definition (not @val). scope splitting (let x=1;let x=2;let y=(let x=3);x is 1) is correctly implemented now. (user: kinaba) [annotate]
54 54 {
55 55 void assertOp(A, B, string fn=__FILE__, size_t ln=__LINE__)(A a, B b, string msg="")
56 56 {
57 57 try
58 58 { if( mixin("a"~op~"b") ) return; }
59 59 catch(Throwable e)
60 60 { onAssertErrorMsg(fn, ln, msg.length ? msg : "exception ["~e.toString()~"]"); }
61 - onAssertErrorMsg(fn, ln, msg.length ? msg : to!string(a)~" !"~op~to!string(b));
61 + onAssertErrorMsg(fn, ln, msg.length ? msg : to!string(a)~" !"~op~" "~to!string(b));
62 62 }
63 63 }
64 64
65 65 alias assertOp!(`==`) assert_eq;
66 66 alias assertOp!(`!=`) assert_ne;
67 67 alias assertOp!(`<`) assert_lt;
68 68 alias assertOp!(`<=`) assert_le;