github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/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": 17, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     5    {"type": "assert_return", "line": 18, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     6    {"type": "assert_return", "line": 19, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     7    {"type": "assert_return", "line": 20, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     8    {"type": "assert_return", "line": 21, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
     9    {"type": "assert_return", "line": 23, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "2"}, {"type": "externref", "value": "1"}, {"type": "i32", "value": "3"}]}, "expected": []}, 
    10    {"type": "assert_return", "line": 24, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "1"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    11    {"type": "assert_return", "line": 25, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "2"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    12    {"type": "assert_return", "line": 26, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    13    {"type": "assert_return", "line": 27, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    14    {"type": "assert_return", "line": 28, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    15    {"type": "assert_return", "line": 30, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "4"}, {"type": "externref", "value": "2"}, {"type": "i32", "value": "2"}]}, "expected": []}, 
    16    {"type": "assert_return", "line": 31, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    17    {"type": "assert_return", "line": 32, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "externref", "value": "2"}]}, 
    18    {"type": "assert_return", "line": 33, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "externref", "value": "2"}]}, 
    19    {"type": "assert_return", "line": 34, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "6"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    20    {"type": "assert_return", "line": 36, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "4"}, {"type": "externref", "value": "3"}, {"type": "i32", "value": "0"}]}, "expected": []}, 
    21    {"type": "assert_return", "line": 37, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "3"}]}, "expected": [{"type": "externref", "value": "1"}]}, 
    22    {"type": "assert_return", "line": 38, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "4"}]}, "expected": [{"type": "externref", "value": "2"}]}, 
    23    {"type": "assert_return", "line": 39, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "5"}]}, "expected": [{"type": "externref", "value": "2"}]}, 
    24    {"type": "assert_return", "line": 41, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "8"}, {"type": "externref", "value": "4"}, {"type": "i32", "value": "2"}]}, "expected": []}, 
    25    {"type": "assert_return", "line": 42, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    26    {"type": "assert_return", "line": 43, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "8"}]}, "expected": [{"type": "externref", "value": "4"}]}, 
    27    {"type": "assert_return", "line": 44, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "9"}]}, "expected": [{"type": "externref", "value": "4"}]}, 
    28    {"type": "assert_return", "line": 46, "action": {"type": "invoke", "field": "fill-abbrev", "args": [{"type": "i32", "value": "9"}, {"type": "externref", "value": "null"}, {"type": "i32", "value": "1"}]}, "expected": []}, 
    29    {"type": "assert_return", "line": 47, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "8"}]}, "expected": [{"type": "externref", "value": "4"}]}, 
    30    {"type": "assert_return", "line": 48, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "9"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    31    {"type": "assert_return", "line": 50, "action": {"type": "invoke", "field": "fill", "args": [{"type": "i32", "value": "10"}, {"type": "externref", "value": "5"}, {"type": "i32", "value": "0"}]}, "expected": []}, 
    32    {"type": "assert_return", "line": 51, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "9"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    33    {"type": "assert_trap", "line": 54, "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": 57, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "7"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    35    {"type": "assert_return", "line": 58, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "8"}]}, "expected": [{"type": "externref", "value": "4"}]}, 
    36    {"type": "assert_return", "line": 59, "action": {"type": "invoke", "field": "get", "args": [{"type": "i32", "value": "9"}]}, "expected": [{"type": "externref", "value": "null"}]}, 
    37    {"type": "assert_trap", "line": 62, "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": 67, "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": 75, "filename": "table_fill.1.wasm", "text": "type mismatch", "module_type": "binary"}, 
    40    {"type": "assert_invalid", "line": 84, "filename": "table_fill.2.wasm", "text": "type mismatch", "module_type": "binary"}, 
    41    {"type": "assert_invalid", "line": 93, "filename": "table_fill.3.wasm", "text": "type mismatch", "module_type": "binary"}, 
    42    {"type": "assert_invalid", "line": 102, "filename": "table_fill.4.wasm", "text": "type mismatch", "module_type": "binary"}, 
    43    {"type": "assert_invalid", "line": 111, "filename": "table_fill.5.wasm", "text": "type mismatch", "module_type": "binary"}, 
    44    {"type": "assert_invalid", "line": 120, "filename": "table_fill.6.wasm", "text": "type mismatch", "module_type": "binary"}, 
    45    {"type": "assert_invalid", "line": 129, "filename": "table_fill.7.wasm", "text": "type mismatch", "module_type": "binary"}, 
    46    {"type": "assert_invalid", "line": 139, "filename": "table_fill.8.wasm", "text": "type mismatch", "module_type": "binary"}, 
    47    {"type": "assert_invalid", "line": 150, "filename": "table_fill.9.wasm", "text": "type mismatch", "module_type": "binary"}]}