tests/snapshots/testsuite/proposals/wasm-3.0/memory_size0.wast.json
raw| 1 | { |
| 2 | "source_filename": "tests/testsuite/proposals/wasm-3.0/memory_size0.wast", |
| 3 | "commands": [ |
| 4 | { |
| 5 | "type": "module", |
| 6 | "line": 1, |
| 7 | "filename": "memory_size0.0.wasm", |
| 8 | "module_type": "binary" |
| 9 | }, |
| 10 | { |
| 11 | "type": "assert_return", |
| 12 | "line": 12, |
| 13 | "action": { |
| 14 | "type": "invoke", |
| 15 | "field": "size", |
| 16 | "args": [] |
| 17 | }, |
| 18 | "expected": [ |
| 19 | { |
| 20 | "type": "i32", |
| 21 | "value": "0" |
| 22 | } |
| 23 | ] |
| 24 | }, |
| 25 | { |
| 26 | "type": "assert_return", |
| 27 | "line": 13, |
| 28 | "action": { |
| 29 | "type": "invoke", |
| 30 | "field": "grow", |
| 31 | "args": [ |
| 32 | { |
| 33 | "type": "i32", |
| 34 | "value": "1" |
| 35 | } |
| 36 | ] |
| 37 | }, |
| 38 | "expected": [] |
| 39 | }, |
| 40 | { |
| 41 | "type": "assert_return", |
| 42 | "line": 14, |
| 43 | "action": { |
| 44 | "type": "invoke", |
| 45 | "field": "size", |
| 46 | "args": [] |
| 47 | }, |
| 48 | "expected": [ |
| 49 | { |
| 50 | "type": "i32", |
| 51 | "value": "1" |
| 52 | } |
| 53 | ] |
| 54 | }, |
| 55 | { |
| 56 | "type": "assert_return", |
| 57 | "line": 15, |
| 58 | "action": { |
| 59 | "type": "invoke", |
| 60 | "field": "grow", |
| 61 | "args": [ |
| 62 | { |
| 63 | "type": "i32", |
| 64 | "value": "4" |
| 65 | } |
| 66 | ] |
| 67 | }, |
| 68 | "expected": [] |
| 69 | }, |
| 70 | { |
| 71 | "type": "assert_return", |
| 72 | "line": 16, |
| 73 | "action": { |
| 74 | "type": "invoke", |
| 75 | "field": "size", |
| 76 | "args": [] |
| 77 | }, |
| 78 | "expected": [ |
| 79 | { |
| 80 | "type": "i32", |
| 81 | "value": "5" |
| 82 | } |
| 83 | ] |
| 84 | }, |
| 85 | { |
| 86 | "type": "assert_return", |
| 87 | "line": 17, |
| 88 | "action": { |
| 89 | "type": "invoke", |
| 90 | "field": "grow", |
| 91 | "args": [ |
| 92 | { |
| 93 | "type": "i32", |
| 94 | "value": "0" |
| 95 | } |
| 96 | ] |
| 97 | }, |
| 98 | "expected": [] |
| 99 | }, |
| 100 | { |
| 101 | "type": "assert_return", |
| 102 | "line": 18, |
| 103 | "action": { |
| 104 | "type": "invoke", |
| 105 | "field": "size", |
| 106 | "args": [] |
| 107 | }, |
| 108 | "expected": [ |
| 109 | { |
| 110 | "type": "i32", |
| 111 | "value": "5" |
| 112 | } |
| 113 | ] |
| 114 | } |
| 115 | ] |
| 116 | } |