From 3d2d891d7e1492d179cd8da7a618fbdd5efcca2c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 Mar 2024 20:41:50 +0900 Subject: feat: add spec testsuites --- tests/fixtures/spec_testsuites/core/custom.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/fixtures/spec_testsuites/core/custom.json (limited to 'tests/fixtures/spec_testsuites/core/custom.json') diff --git a/tests/fixtures/spec_testsuites/core/custom.json b/tests/fixtures/spec_testsuites/core/custom.json new file mode 100644 index 0000000..2236fb8 --- /dev/null +++ b/tests/fixtures/spec_testsuites/core/custom.json @@ -0,0 +1,13 @@ +{"source_filename": "./custom.wast", + "commands": [ + {"type": "module", "line": 1, "filename": "custom.0.wasm"}, + {"type": "module", "line": 14, "filename": "custom.1.wasm"}, + {"type": "module", "line": 50, "filename": "custom.2.wasm"}, + {"type": "assert_malformed", "line": 61, "filename": "custom.3.wasm", "text": "unexpected end", "module_type": "binary"}, + {"type": "assert_malformed", "line": 69, "filename": "custom.4.wasm", "text": "unexpected end", "module_type": "binary"}, + {"type": "assert_malformed", "line": 77, "filename": "custom.5.wasm", "text": "unexpected end", "module_type": "binary"}, + {"type": "assert_malformed", "line": 85, "filename": "custom.6.wasm", "text": "length out of bounds", "module_type": "binary"}, + {"type": "assert_malformed", "line": 93, "filename": "custom.7.wasm", "text": "malformed section id", "module_type": "binary"}, + {"type": "assert_malformed", "line": 102, "filename": "custom.8.wasm", "text": "function and code section have inconsistent lengths", "module_type": "binary"}, + {"type": "assert_malformed", "line": 115, "filename": "custom.9.wasm", "text": "length out of bounds", "module_type": "binary"}, + {"type": "assert_malformed", "line": 123, "filename": "custom.10.wasm", "text": "data count and data section have inconsistent lengths", "module_type": "binary"}]} -- cgit v1.2.3-70-g09d2