Failing test case for #6
This commit is contained in:
21
src/test/cases/IdenticalUnquoteTestCase.hx
Normal file
21
src/test/cases/IdenticalUnquoteTestCase.hx
Normal 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();
|
||||
}
|
||||
}
|
13
src/test/cases/IdenticalUnquoteTestCase.kiss
Normal file
13
src/test/cases/IdenticalUnquoteTestCase.kiss
Normal 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"))
|
Reference in New Issue
Block a user