test "compile int_inc" do
assert {:module, :"2_int_inc.opt"} = WaEmbedder.compile("test_data/2_int_inc.opt.wasm")
assert :erlang.apply(:"2_int_inc.opt", :inc, [41]) == 42
test "compile int_arithm" do
assert {:module, :"2_int_arithm.opt"} = WaEmbedder.compile("test_data/2_int_arithm.opt.wasm")
assert :erlang.apply(:"2_int_arithm.opt", :inc, [41]) == 42
assert :erlang.apply(:"2_int_arithm.opt", :dec, [43]) == 42
assert :erlang.apply(:"2_int_arithm.opt", :tri, [6]) == 18
assert :erlang.apply(:"2_int_arithm.opt", :third, [6]) == 2