File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 7979(assert_return (invoke " array_get_nth" (i32.const 2 )) (i32.const 11 ))
8080(assert_return (invoke " array_get_nth" (i32.const 3 )) (i32.const 11 ))
8181(assert_return (invoke " array_get_nth" (i32.const 4 )) (i32.const 0 ))
82+
83+ ;; fill the whole array
84+ (assert_return (invoke " array_fill" (i32.const 0 ) (i32.const 42 ) (i32.const 12 )))
85+ (assert_return (invoke " array_get_nth" (i32.const 0 )) (i32.const 42 ))
86+ (assert_return (invoke " array_get_nth" (i32.const 2 )) (i32.const 42 ))
87+ (assert_return (invoke " array_get_nth" (i32.const 5 )) (i32.const 42 ))
88+ (assert_return (invoke " array_get_nth" (i32.const 11 )) (i32.const 42 ))
89+
90+ ;; fill the first element
91+ (assert_return (invoke " array_fill" (i32.const 0 ) (i32.const 7 ) (i32.const 1 )))
92+ (assert_return (invoke " array_get_nth" (i32.const 0 )) (i32.const 7 ))
93+ (assert_return (invoke " array_get_nth" (i32.const 1 )) (i32.const 42 ))
94+ (assert_return (invoke " array_get_nth" (i32.const 11 )) (i32.const 42 ))
95+
96+ ;; fill the last 2 elements
97+ (assert_return (invoke " array_fill" (i32.const 10 ) (i32.const 9 ) (i32.const 2 )))
98+ (assert_return (invoke " array_get_nth" (i32.const 9 )) (i32.const 42 ))
99+ (assert_return (invoke " array_get_nth" (i32.const 10 )) (i32.const 9 ))
100+ (assert_return (invoke " array_get_nth" (i32.const 11 )) (i32.const 9 ))
You can’t perform that action at this time.
0 commit comments