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 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;