@@ -9,9 +9,9 @@ import core.exception; /// Unittest helper that asserts an expression must throw something -void assert_throw(ExceptionType, T, string fn=__FILE__, int ln=__LINE__)(lazy T t, string msg="") +void assert_throw(ExceptionType, T, string fn=__FILE__, size_t ln=__LINE__)(lazy T t, string msg="") { try { t(); } catch(ExceptionType) @@ -22,9 +22,9 @@ } /// Unittest helper that asserts an expression must not throw anything -auto assert_nothrow(T, string fn=__FILE__, int ln=__LINE__)(lazy T t, string msg="") +auto assert_nothrow(T, string fn=__FILE__, size_t ln=__LINE__)(lazy T t, string msg="") { try { return t(); } catch(Throwable e) @@ -51,9 +51,9 @@ /// Unittest helpers asserting two values are in some relation ==, !=, <, <=, >, >= template assertOp(string op) { - void assertOp(A, B, string fn=__FILE__, int ln=__LINE__)(A a, B b, string msg="") + void assertOp(A, B, string fn=__FILE__, size_t ln=__LINE__)(A a, B b, string msg="") { try { if( mixin("a"~op~"b") ) return; } catch(Throwable e)