wa-lang.org/wazero@v1.0.2/internal/integration_test/spectest/v2/testdata/table_size.json (about) 1 {"source_filename": "./table_size.wast", 2 "commands": [ 3 {"type": "module", "line": 1, "filename": "table_size.0.wasm"}, 4 {"type": "assert_return", "line": 26, "action": {"type": "invoke", "field": "size-t0", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 5 {"type": "assert_return", "line": 27, "action": {"type": "invoke", "field": "grow-t0", "args": [{"type": "i32", "value": "1"}]}, "expected": []}, 6 {"type": "assert_return", "line": 28, "action": {"type": "invoke", "field": "size-t0", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 7 {"type": "assert_return", "line": 29, "action": {"type": "invoke", "field": "grow-t0", "args": [{"type": "i32", "value": "4"}]}, "expected": []}, 8 {"type": "assert_return", "line": 30, "action": {"type": "invoke", "field": "size-t0", "args": []}, "expected": [{"type": "i32", "value": "5"}]}, 9 {"type": "assert_return", "line": 31, "action": {"type": "invoke", "field": "grow-t0", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 10 {"type": "assert_return", "line": 32, "action": {"type": "invoke", "field": "size-t0", "args": []}, "expected": [{"type": "i32", "value": "5"}]}, 11 {"type": "assert_return", "line": 34, "action": {"type": "invoke", "field": "size-t1", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 12 {"type": "assert_return", "line": 35, "action": {"type": "invoke", "field": "grow-t1", "args": [{"type": "i32", "value": "1"}]}, "expected": []}, 13 {"type": "assert_return", "line": 36, "action": {"type": "invoke", "field": "size-t1", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 14 {"type": "assert_return", "line": 37, "action": {"type": "invoke", "field": "grow-t1", "args": [{"type": "i32", "value": "4"}]}, "expected": []}, 15 {"type": "assert_return", "line": 38, "action": {"type": "invoke", "field": "size-t1", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 16 {"type": "assert_return", "line": 39, "action": {"type": "invoke", "field": "grow-t1", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 17 {"type": "assert_return", "line": 40, "action": {"type": "invoke", "field": "size-t1", "args": []}, "expected": [{"type": "i32", "value": "6"}]}, 18 {"type": "assert_return", "line": 42, "action": {"type": "invoke", "field": "size-t2", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 19 {"type": "assert_return", "line": 43, "action": {"type": "invoke", "field": "grow-t2", "args": [{"type": "i32", "value": "3"}]}, "expected": []}, 20 {"type": "assert_return", "line": 44, "action": {"type": "invoke", "field": "size-t2", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 21 {"type": "assert_return", "line": 45, "action": {"type": "invoke", "field": "grow-t2", "args": [{"type": "i32", "value": "1"}]}, "expected": []}, 22 {"type": "assert_return", "line": 46, "action": {"type": "invoke", "field": "size-t2", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 23 {"type": "assert_return", "line": 47, "action": {"type": "invoke", "field": "grow-t2", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 24 {"type": "assert_return", "line": 48, "action": {"type": "invoke", "field": "size-t2", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 25 {"type": "assert_return", "line": 49, "action": {"type": "invoke", "field": "grow-t2", "args": [{"type": "i32", "value": "4"}]}, "expected": []}, 26 {"type": "assert_return", "line": 50, "action": {"type": "invoke", "field": "size-t2", "args": []}, "expected": [{"type": "i32", "value": "1"}]}, 27 {"type": "assert_return", "line": 51, "action": {"type": "invoke", "field": "grow-t2", "args": [{"type": "i32", "value": "1"}]}, "expected": []}, 28 {"type": "assert_return", "line": 52, "action": {"type": "invoke", "field": "size-t2", "args": []}, "expected": [{"type": "i32", "value": "2"}]}, 29 {"type": "assert_return", "line": 54, "action": {"type": "invoke", "field": "size-t3", "args": []}, "expected": [{"type": "i32", "value": "3"}]}, 30 {"type": "assert_return", "line": 55, "action": {"type": "invoke", "field": "grow-t3", "args": [{"type": "i32", "value": "1"}]}, "expected": []}, 31 {"type": "assert_return", "line": 56, "action": {"type": "invoke", "field": "size-t3", "args": []}, "expected": [{"type": "i32", "value": "4"}]}, 32 {"type": "assert_return", "line": 57, "action": {"type": "invoke", "field": "grow-t3", "args": [{"type": "i32", "value": "3"}]}, "expected": []}, 33 {"type": "assert_return", "line": 58, "action": {"type": "invoke", "field": "size-t3", "args": []}, "expected": [{"type": "i32", "value": "7"}]}, 34 {"type": "assert_return", "line": 59, "action": {"type": "invoke", "field": "grow-t3", "args": [{"type": "i32", "value": "0"}]}, "expected": []}, 35 {"type": "assert_return", "line": 60, "action": {"type": "invoke", "field": "size-t3", "args": []}, "expected": [{"type": "i32", "value": "7"}]}, 36 {"type": "assert_return", "line": 61, "action": {"type": "invoke", "field": "grow-t3", "args": [{"type": "i32", "value": "2"}]}, "expected": []}, 37 {"type": "assert_return", "line": 62, "action": {"type": "invoke", "field": "size-t3", "args": []}, "expected": [{"type": "i32", "value": "7"}]}, 38 {"type": "assert_return", "line": 63, "action": {"type": "invoke", "field": "grow-t3", "args": [{"type": "i32", "value": "1"}]}, "expected": []}, 39 {"type": "assert_return", "line": 64, "action": {"type": "invoke", "field": "size-t3", "args": []}, "expected": [{"type": "i32", "value": "8"}]}, 40 {"type": "assert_invalid", "line": 70, "filename": "table_size.1.wasm", "text": "type mismatch", "module_type": "binary"}, 41 {"type": "assert_invalid", "line": 79, "filename": "table_size.2.wasm", "text": "type mismatch", "module_type": "binary"}]}