message: test: Add end-to-end test for milestone1
diff: #include "execute.hpp"
  +#include "parser.hpp"
  +#include "utils.hpp"
  #include <gtest/gtest.h>
  TEST(execute, end)
  @@ -104,3 +106,32 @@ TEST(execute, basic_add_with_inputs)
  ASSERT_EQ(ret.size(), 1);
  EXPECT_EQ(ret[0], 42);
  }
  +
  +TEST(execute, milestone1)
  +{
  + /*
  + (module
  + (func $add (param $lhs i32) (param $rhs i32) (result i32)
  + (local $local1 i32)
  + local.get $lhs
  + local.get $rhs
  + i32.add
  + local.get $local1
  + i32.add
  + local.tee $local1
  + local.get $lhs
  + i32.add
  + )
  + )
  + */
  +
  + const auto bin = fizzy::from_hex(
  + "0061736d0100000001070160027f7f017f030201000a13011101017f200020016a20026a220220006a0b");
  + const auto module = fizzy::parse(bin);
  +
  + const auto [trap, ret] = fizzy::execute(module, 0, {20, 22});
  +
  + ASSERT_EQ(trap, false);
  + ASSERT_EQ(ret.size(), 1);
  + EXPECT_EQ(ret[0], 20 + 22 + 20);
  +}
  \ No newline at end of file
  