aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/fixtures/spec_testsuites/core/custom.json
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-16 20:41:50 +0900
committernsfisis <nsfisis@gmail.com>2024-03-16 20:41:50 +0900
commit3d2d891d7e1492d179cd8da7a618fbdd5efcca2c (patch)
tree45367f35d98af1125a2197b3bc3dbc35700128d7 /tests/fixtures/spec_testsuites/core/custom.json
parent9b45796547c8022b98a9254320323d72aecd81cb (diff)
downloadphp-waddiwasi-3d2d891d7e1492d179cd8da7a618fbdd5efcca2c.tar.gz
php-waddiwasi-3d2d891d7e1492d179cd8da7a618fbdd5efcca2c.tar.zst
php-waddiwasi-3d2d891d7e1492d179cd8da7a618fbdd5efcca2c.zip
feat: add spec testsuites
Diffstat (limited to 'tests/fixtures/spec_testsuites/core/custom.json')
-rw-r--r--tests/fixtures/spec_testsuites/core/custom.json13
1 files changed, 13 insertions, 0 deletions
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"}]}