Rename test case + add lambda test

This commit is contained in:
2024-02-17 09:39:08 -07:00
parent 8ff1961ee0
commit c9747fd467
2 changed files with 21 additions and 2 deletions

View File

@@ -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();
}
}

View File

@@ -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))