update tests and fix some
This commit is contained in:
@@ -299,7 +299,9 @@ endBlockComment _inp _len = do
|
||||
alexMonadScan
|
||||
|
||||
startStringLiteral :: AlexAction Lexeme
|
||||
startStringLiteral _inp _len = do
|
||||
startStringLiteral (_, prev, _, _) _len = do
|
||||
when (prev `notElem` "() \x09\x0A\x0D")
|
||||
$ alexError "string literal should start after space or parent character"
|
||||
alexSetStartCode stringLiteral
|
||||
setLexerStringFlag True
|
||||
alexMonadScan
|
||||
|
||||
@@ -56,6 +56,7 @@ runScript onAssertFail script = do
|
||||
(st, inst) <- Interpreter.makeHostModule Interpreter.emptyStore [
|
||||
("print", hostPrint []),
|
||||
("print_i32", hostPrint [Struct.I32]),
|
||||
("print_i64", hostPrint [Struct.I64]),
|
||||
("print_i32_f32", hostPrint [Struct.I32, Struct.F32]),
|
||||
("print_f64_f64", hostPrint [Struct.F64, Struct.F64]),
|
||||
("print_f32", hostPrint [Struct.F32]),
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ main = do
|
||||
files <-
|
||||
filter (not . List.isPrefixOf "simd") . filter (List.isSuffixOf ".wast")
|
||||
<$> Directory.listDirectory "tests/spec"
|
||||
-- let files = ["bulk.wast"]
|
||||
-- let files = ["tokens.wast"]
|
||||
scriptTestCases <- (`mapM` files) $ \file -> do
|
||||
test <- LBS.readFile ("tests/spec/" ++ file)
|
||||
return $ testCase file $ do
|
||||
|
||||
+1
-1
Submodule tests/spec updated: 6241ce9e15...b25bf82371
Reference in New Issue
Block a user