KFLYOSTI7YNXINV7WSZ2YYOL66GHXP5SVGD6HX4ECXZL4N2LLYCQC
defmodule WaEmbedderTest do
use ExUnit.Case
doctest WaEmbedder
test "compile return_0" do
assert {:module, :"0_return_0.opt"} = WaEmbedder.compile("test_data/0_return_0.opt.wasm")
assert :erlang.apply(:"0_return_0.opt", :return_0, []) == 0
end
test "all" do
assert {:module, :"9_all.opt"} = WaEmbedder.compile("test_data/9_all.opt.wasm")
assert :erlang.apply(:"9_all.opt", :return_0, []) == 0
end
end
ExUnit.start()