Rename test case + add lambda test
This commit is contained in:
@@ -13,9 +13,13 @@ import js.lib.Promise;
|
||||
using StringTools;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class ObjectFormTestCase extends Test {
|
||||
class MacroExpandTestCase extends Test {
|
||||
function testObjectFormWithAlias() {
|
||||
_testObjectFormWithAlias();
|
||||
}
|
||||
|
||||
function testLambdaFormWithAlias() {
|
||||
_testLambdaFormWithAlias();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,19 @@
|
||||
(function _testObjectFormWithAlias []
|
||||
.Stream (normalExample)
|
||||
.Stream (macroExpandExample)
|
||||
(Assert.pass))
|
||||
(Assert.pass))
|
||||
|
||||
(defMacroFunction example2 []
|
||||
`(lambda [Stream] (Stream.fromString "")))
|
||||
|
||||
(defMacro normalExample2 []
|
||||
(printExp (example2)))
|
||||
|
||||
(defMacro macroExpandExample2 []
|
||||
(printExp (macroExpand (example2))))
|
||||
|
||||
(function _testLambdaFormWithAlias []
|
||||
(normalExample2)
|
||||
(macroExpandExample2)
|
||||
(Assert.pass))
|
||||
|
||||
Reference in New Issue
Block a user