trace special form. close #45

This commit is contained in:
2022-06-05 16:22:06 +00:00
parent ced512a4e4
commit b8ea8a81d3
4 changed files with 30 additions and 2 deletions

View File

@@ -346,6 +346,10 @@ class BasicTestCase extends Test {
function testWhileLet() {
_testWhileLet();
}
function testTrace() {
_testTrace();
}
}
class BasicObject {

View File

@@ -637,4 +637,7 @@ From:[(assert false (+ \"false \" \"should \" \"have \" \"been \" \"true\"))]" m
stream (Stream.fromString "a\nb\nc")]
(whileLet [(Some line) (stream.takeLine)]
(Assert.equals (nth lines idx) line)
(+= idx 1))))
(+= idx 1))))
(function _testTrace []
(Assert.equals 5 (trace 5 "num")))