wa-lang.org/wazero@v1.0.2/internal/integration_test/spectest/v2/testdata/table_fill.json (about)

     1  {"source_filename": "./table_fill.wast",
     2   "commands": [
     3    {"type": "module", "line": 1, "filename": "table_fill.0.wasm"}, 
     4    {"type": "assert_return", "line": 13, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     5    {"type": "assert_return", "line": 14, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     6    {"type": "assert_return", "line": 15, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     7    {"type": "assert_return", "line": 16, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     8    {"type": "assert_return", "line": 17, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     9    {"type": "assert_return", "line": 19, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "2"}, {"type": "externref", "value": "1"}, {"type": "i32", "value": "3"}]}, "expected": []}, 
    10    {"type": "assert_return", "line": 20, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    11    {"type": "assert_return", "line": 21, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    12    {"type": "assert_return", "line": 22, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    13    {"type": "assert_return", "line": 23, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    14    {"type": "assert_return", "line": 24, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    15    {"type": "assert_return", "line": 26, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "4"}, {"type": "externref", "value": "2"}, {"type": "i32", "value": "2"}]}, "expected": []}, 
    16    {"type": "assert_return", "line": 27, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    17    {"type": "assert_return", "line": 28, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "externref", "value": "2"}]}, 
    18    {"type": "assert_return", "line": 29, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "externref", "value": "2"}]}, 
    19    {"type": "assert_return", "line": 30, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    20    {"type": "assert_return", "line": 32, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "4"}, {"type": "externref", "value": "3"}, {"type": "i32", "value": "0"}]}, "expected": []}, 
    21    {"type": "assert_return", "line": 33, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    22    {"type": "assert_return", "line": 34, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "externref", "value": "2"}]}, 
    23    {"type": "assert_return", "line": 35, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "externref", "value": "2"}]}, 
    24    {"type": "assert_return", "line": 37, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "8"}, {"type": "externref", "value": "4"}, {"type": "i32", "value": "2"}]}, "expected": []}, 
    25    {"type": "assert_return", "line": 38, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    26    {"type": "assert_return", "line": 39, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "8"}]}, "expected": [{"type": "externref", "value": "4"}]}, 
    27    {"type": "assert_return", "line": 40, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "9"}]}, "expected": [{"type": "externref", "value": "4"}]}, 
    28    {"type": "assert_return", "line": 42, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "9"}, {"type": "externref", "value": "null"}, {"type": "i32", "value": "1"}]}, "expected": []}, 
    29    {"type": "assert_return", "line": 43, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "8"}]}, "expected": [{"type": "externref", "value": "4"}]}, 
    30    {"type": "assert_return", "line": 44, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "9"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    31    {"type": "assert_return", "line": 46, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "10"}, {"type": "externref", "value": "5"}, {"type": "i32", "value": "0"}]}, "expected": []}, 
    32    {"type": "assert_return", "line": 47, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "9"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    33    {"type": "assert_trap", "line": 50, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "8"}, {"type": "externref", "value": "6"}, {"type": "i32", "value": "3"}]}, "text": "out of bounds table access", "expected": []}, 
    34    {"type": "assert_return", "line": 53, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    35    {"type": "assert_return", "line": 54, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "8"}]}, "expected": [{"type": "externref", "value": "4"}]}, 
    36    {"type": "assert_return", "line": 55, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "9"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    37    {"type": "assert_trap", "line": 58, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "11"}, {"type": "externref", "value": "null"}, {"type": "i32", "value": "0"}]}, "text": "out of bounds table access", "expected": []}, 
    38    {"type": "assert_trap", "line": 63, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "11"}, {"type": "externref", "value": "null"}, {"type": "i32", "value": "10"}]}, "text": "out of bounds table access", "expected": []}, 
    39    {"type": "assert_invalid", "line": 71, "filename": "table_fill.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    40    {"type": "assert_invalid", "line": 80, "filename": "table_fill.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    41    {"type": "assert_invalid", "line": 89, "filename": "table_fill.3.wasm", "text": "type mismatch", "module_type": "binary"}, 
    42    {"type": "assert_invalid", "line": 98, "filename": "table_fill.4.wasm", "text": "type mismatch", "module_type": "binary"}, 
    43    {"type": "assert_invalid", "line": 107, "filename": "table_fill.5.wasm", "text": "type mismatch", "module_type": "binary"}, 
    44    {"type": "assert_invalid", "line": 116, "filename": "table_fill.6.wasm", "text": "type mismatch", "module_type": "binary"}, 
    45    {"type": "assert_invalid", "line": 125, "filename": "table_fill.7.wasm", "text": "type mismatch", "module_type": "binary"}, 
    46    {"type": "assert_invalid", "line": 135, "filename": "table_fill.8.wasm", "text": "type mismatch", "module_type": "binary"}, 
    47    {"type": "assert_invalid", "line": 146, "filename": "table_fill.9.wasm", "text": "type mismatch", "module_type": "binary"}]}