github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/integration_test/spectest/v1/testdata/int_literals.json (about)

     1  {"source_filename": "./int_literals.wast",
     2   "commands": [
     3    {"type": "module", "line": 1, "filename": "int_literals.0.wasm"}, 
     4    {"type": "assert_return", "line": 37, "action": {"type": "invoke", "field": "i32.test", "args": []}, "expected": [{"type": "i32", "value": "195940365"}]}, 
     5    {"type": "assert_return", "line": 38, "action": {"type": "invoke", "field": "i32.umax", "args": []}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
     6    {"type": "assert_return", "line": 39, "action": {"type": "invoke", "field": "i32.smax", "args": []}, "expected": [{"type": "i32", "value": "2147483647"}]}, 
     7    {"type": "assert_return", "line": 40, "action": {"type": "invoke", "field": "i32.neg_smax", "args": []}, "expected": [{"type": "i32", "value": "2147483649"}]}, 
     8    {"type": "assert_return", "line": 41, "action": {"type": "invoke", "field": "i32.smin", "args": []}, "expected": [{"type": "i32", "value": "2147483648"}]}, 
     9    {"type": "assert_return", "line": 42, "action": {"type": "invoke", "field": "i32.alt_smin", "args": []}, "expected": [{"type": "i32", "value": "2147483648"}]}, 
    10    {"type": "assert_return", "line": 43, "action": {"type": "invoke", "field": "i32.inc_smin", "args": []}, "expected": [{"type": "i32", "value": "2147483649"}]}, 
    11    {"type": "assert_return", "line": 44, "action": {"type": "invoke", "field": "i32.neg_zero", "args": []}, "expected": [{"type": "i32", "value": "0"}]}, 
    12    {"type": "assert_return", "line": 45, "action": {"type": "invoke", "field": "i32.not_octal", "args": []}, "expected": [{"type": "i32", "value": "10"}]}, 
    13    {"type": "assert_return", "line": 46, "action": {"type": "invoke", "field": "i32.unsigned_decimal", "args": []}, "expected": [{"type": "i32", "value": "4294967295"}]}, 
    14    {"type": "assert_return", "line": 47, "action": {"type": "invoke", "field": "i32.plus_sign", "args": []}, "expected": [{"type": "i32", "value": "42"}]}, 
    15    {"type": "assert_return", "line": 49, "action": {"type": "invoke", "field": "i64.test", "args": []}, "expected": [{"type": "i64", "value": "913028331277281902"}]}, 
    16    {"type": "assert_return", "line": 50, "action": {"type": "invoke", "field": "i64.umax", "args": []}, "expected": [{"type": "i64", "value": "18446744073709551615"}]}, 
    17    {"type": "assert_return", "line": 51, "action": {"type": "invoke", "field": "i64.smax", "args": []}, "expected": [{"type": "i64", "value": "9223372036854775807"}]}, 
    18    {"type": "assert_return", "line": 52, "action": {"type": "invoke", "field": "i64.neg_smax", "args": []}, "expected": [{"type": "i64", "value": "9223372036854775809"}]}, 
    19    {"type": "assert_return", "line": 53, "action": {"type": "invoke", "field": "i64.smin", "args": []}, "expected": [{"type": "i64", "value": "9223372036854775808"}]}, 
    20    {"type": "assert_return", "line": 54, "action": {"type": "invoke", "field": "i64.alt_smin", "args": []}, "expected": [{"type": "i64", "value": "9223372036854775808"}]}, 
    21    {"type": "assert_return", "line": 55, "action": {"type": "invoke", "field": "i64.inc_smin", "args": []}, "expected": [{"type": "i64", "value": "9223372036854775809"}]}, 
    22    {"type": "assert_return", "line": 56, "action": {"type": "invoke", "field": "i64.neg_zero", "args": []}, "expected": [{"type": "i64", "value": "0"}]}, 
    23    {"type": "assert_return", "line": 57, "action": {"type": "invoke", "field": "i64.not_octal", "args": []}, "expected": [{"type": "i64", "value": "10"}]}, 
    24    {"type": "assert_return", "line": 58, "action": {"type": "invoke", "field": "i64.unsigned_decimal", "args": []}, "expected": [{"type": "i64", "value": "18446744073709551615"}]}, 
    25    {"type": "assert_return", "line": 59, "action": {"type": "invoke", "field": "i64.plus_sign", "args": []}, "expected": [{"type": "i64", "value": "42"}]}, 
    26    {"type": "assert_return", "line": 61, "action": {"type": "invoke", "field": "i32-dec-sep1", "args": []}, "expected": [{"type": "i32", "value": "1000000"}]}, 
    27    {"type": "assert_return", "line": 62, "action": {"type": "invoke", "field": "i32-dec-sep2", "args": []}, "expected": [{"type": "i32", "value": "1000"}]}, 
    28    {"type": "assert_return", "line": 63, "action": {"type": "invoke", "field": "i32-hex-sep1", "args": []}, "expected": [{"type": "i32", "value": "168755353"}]}, 
    29    {"type": "assert_return", "line": 64, "action": {"type": "invoke", "field": "i32-hex-sep2", "args": []}, "expected": [{"type": "i32", "value": "109071"}]}, 
    30    {"type": "assert_return", "line": 66, "action": {"type": "invoke", "field": "i64-dec-sep1", "args": []}, "expected": [{"type": "i64", "value": "1000000"}]}, 
    31    {"type": "assert_return", "line": 67, "action": {"type": "invoke", "field": "i64-dec-sep2", "args": []}, "expected": [{"type": "i64", "value": "1000"}]}, 
    32    {"type": "assert_return", "line": 68, "action": {"type": "invoke", "field": "i64-hex-sep1", "args": []}, "expected": [{"type": "i64", "value": "3078696982321561"}]}, 
    33    {"type": "assert_return", "line": 69, "action": {"type": "invoke", "field": "i64-hex-sep2", "args": []}, "expected": [{"type": "i64", "value": "109071"}]}, 
    34    {"type": "assert_malformed", "line": 72, "filename": "int_literals.1.wat", "text": "unknown operator", "module_type": "text"}, 
    35    {"type": "assert_malformed", "line": 76, "filename": "int_literals.2.wat", "text": "unknown operator", "module_type": "text"}, 
    36    {"type": "assert_malformed", "line": 80, "filename": "int_literals.3.wat", "text": "unknown operator", "module_type": "text"}, 
    37    {"type": "assert_malformed", "line": 84, "filename": "int_literals.4.wat", "text": "unknown operator", "module_type": "text"}, 
    38    {"type": "assert_malformed", "line": 88, "filename": "int_literals.5.wat", "text": "unknown operator", "module_type": "text"}, 
    39    {"type": "assert_malformed", "line": 92, "filename": "int_literals.6.wat", "text": "unknown operator", "module_type": "text"}, 
    40    {"type": "assert_malformed", "line": 96, "filename": "int_literals.7.wat", "text": "unknown operator", "module_type": "text"}, 
    41    {"type": "assert_malformed", "line": 100, "filename": "int_literals.8.wat", "text": "unknown operator", "module_type": "text"}, 
    42    {"type": "assert_malformed", "line": 104, "filename": "int_literals.9.wat", "text": "unknown operator", "module_type": "text"}, 
    43    {"type": "assert_malformed", "line": 108, "filename": "int_literals.10.wat", "text": "unknown operator", "module_type": "text"}, 
    44    {"type": "assert_malformed", "line": 113, "filename": "int_literals.11.wat", "text": "unknown operator", "module_type": "text"}, 
    45    {"type": "assert_malformed", "line": 117, "filename": "int_literals.12.wat", "text": "unknown operator", "module_type": "text"}, 
    46    {"type": "assert_malformed", "line": 121, "filename": "int_literals.13.wat", "text": "unknown operator", "module_type": "text"}, 
    47    {"type": "assert_malformed", "line": 125, "filename": "int_literals.14.wat", "text": "unknown operator", "module_type": "text"}, 
    48    {"type": "assert_malformed", "line": 129, "filename": "int_literals.15.wat", "text": "unknown operator", "module_type": "text"}, 
    49    {"type": "assert_malformed", "line": 133, "filename": "int_literals.16.wat", "text": "unknown operator", "module_type": "text"}, 
    50    {"type": "assert_malformed", "line": 137, "filename": "int_literals.17.wat", "text": "unknown operator", "module_type": "text"}, 
    51    {"type": "assert_malformed", "line": 141, "filename": "int_literals.18.wat", "text": "unknown operator", "module_type": "text"}, 
    52    {"type": "assert_malformed", "line": 145, "filename": "int_literals.19.wat", "text": "unknown operator", "module_type": "text"}, 
    53    {"type": "assert_malformed", "line": 149, "filename": "int_literals.20.wat", "text": "unknown operator", "module_type": "text"}]}