Failing test case for #6

This commit is contained in:
2024-02-15 17:04:20 -07:00
parent 760abdcb95
commit c38a93eee1
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package test.cases;
import utest.Test;
import utest.Assert;
import kiss.Prelude;
import kiss.List;
import kiss.Stream;
import haxe.ds.Option;
import kiss.Kiss;
#if js
import js.lib.Promise;
#end
using StringTools;
@:build(kiss.Kiss.build())
class IdenticalUnquoteTestCase extends Test {
function testDifferentValues() {
_testDifferentValues();
}
}

View File

@@ -0,0 +1,13 @@
(defMacroFunction arrayReaderMacro [stream]
(let [nextLineStream (stream.expect "array macro line" ->(stream.takeLineAsStream))]
(printExp `[,(read nextLineStream) ,(read nextLineStream) ,(read nextLineStream)])))
(defReaderMacro "array " [stream]
(arrayReaderMacro stream))
(var testArray
array 1 2 3
)
(function _testDifferentValues []
(Assert.equals "[1,2,3]" "$testArray"))