Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Dec 18, 2023
1 parent 5f16e17 commit 8b8465b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions test/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
(module
(func $fib2 (param $n i64) (param $a i64) (param $b i64) (result i64)
(if (result i64)
(i64.eqz (get_local $n))
(then (get_local $a))
(else (return_call $fib2 (i64.sub (get_local $n)
(i64.eqz (local.get $n))
(then (local.get $a))
(else (return_call $fib2 (i64.sub (local.get $n)
(i64.const 1))
(get_local $b)
(i64.add (get_local $a)
(get_local $b))))))
(local.get $b)
(i64.add (local.get $a)
(local.get $b))))))
(func $fib (export "fib") (param i64) (result i64)
(return_call $fib2 (get_local 0)
(return_call $fib2 (local.get 0)
(i64.const 0) ;; seed value $a
(i64.const 1))) ;; seed value $b
)
Expand Down
8 changes: 4 additions & 4 deletions test/test_multivalue.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
MV_SWAP_WASM = wat2wasm("""
(module
(func (export "swap") (param i32 i32) (result i32 i32)
(get_local 1)
(get_local 0)
(local.get 1)
(local.get 0)
)
)
""")
Expand All @@ -17,8 +17,8 @@
(type $t0 (func (param i32 i64) (result i64 i32)))
(import "env" "swap" (func $env.swap (type $t0)))
(func (export "swap") (type $t0)
(get_local 0)
(get_local 1)
(local.get 0)
(local.get 1)
(call $env.swap)
)
)
Expand Down

0 comments on commit 8b8465b

Please sign in to comment.