all tests are green

This commit is contained in:
Ilya Rezvov
2023-08-26 21:44:36 -06:00
parent d112b28233
commit 7810040226
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -877,10 +877,10 @@ instance Serialize ElemSegment where
putVec $ map Expr elements
get = do
op <- getWord8
let funcIndexes = map ((:[]) . RefFunc . unIndex) <$> getVec
let elemKind = byteGuard 0x00 >> return FuncRef
case op of
op <- getULEB128 32
case (op :: Word8) of
0x00 -> do
offset <- getExpression
ElemSegment FuncRef (Active 0 offset) <$> funcIndexes
+1 -1
View File
@@ -19,7 +19,7 @@ main = do
files <-
filter (not . List.isPrefixOf "simd") . filter (List.isSuffixOf ".wast")
<$> Directory.listDirectory "tests/spec"
-- let files = ["ref_func.wast"]
-- let files = ["binary-leb128.wast"]
scriptTestCases <- (`mapM` files) $ \file -> do
test <- LBS.readFile ("tests/spec/" ++ file)
return $ testCase file $ do