assert return the value of the asserted expression
This commit is contained in:
@@ -44,8 +44,13 @@ class MacroTestCase extends Test {
|
||||
function testSetMacroVar() {
|
||||
_testSetMacroVar();
|
||||
}
|
||||
*/
|
||||
|
||||
function testTryCatchWithoutDynamic () {
|
||||
_testTryCatchWithoutDynamic();
|
||||
}
|
||||
|
||||
function testAssertReturnsValue () {
|
||||
_testAssertReturnsValue();
|
||||
}
|
||||
}
|
||||
|
@@ -95,4 +95,7 @@
|
||||
(try (throw "intended") (catch [e] (ReaderExp.StrExp e))))
|
||||
|
||||
(function _testTryCatchWithoutDynamic []
|
||||
(Assert.equals "intended" (_testTryCatchWithoutDynamicMacro)))
|
||||
(Assert.equals "intended" (_testTryCatchWithoutDynamicMacro)))
|
||||
|
||||
(function _testAssertReturnsValue []
|
||||
(Assert.equals true (assert true)))
|
Reference in New Issue
Block a user