message: test: fix unit tests with incorrect local count
diff: @@ -16,10 +16,10 @@ namespace
  const Module ModuleWithSingleFunction = {
  {FuncType{{}, {}}}, {}, {0}, {}, {}, {}, {}, std::nullopt, {}, {}, {}, {}, {}, {}, {}};
  -inline auto parse_expr(
  - const bytes& input, FuncIdx func_idx = 0, const Module& module = ModuleWithSingleFunction)
  +inline auto parse_expr(const bytes& input, FuncIdx func_idx = 0,
  + const std::vector<Locals>& locals = {}, const Module& module = ModuleWithSingleFunction)
  {
  - return fizzy::parse_expr(input.data(), input.data() + input.size(), func_idx, {}, module);
  + return fizzy::parse_expr(input.data(), input.data() + input.size(), func_idx, locals, module);
  }
  } // namespace
  @@ -184,7 +184,7 @@ TEST(parser_expr, block_br)
  // end
  const auto code_bin = "010240410a21010c00410b21010b20011a0b"_bytes;
  - const auto [code, pos] = parse_expr(code_bin, 2);
  + const auto [code, pos] = parse_expr(code_bin, 0, {{2, ValType::i32}});
  EXPECT_EQ(
  code.instructions, (std::vector{Instr::nop, Instr::block, Instr::i32_const,
  Instr::local_set, Instr::br, Instr::i32_const, Instr::local_set,
  @@ -467,11 +467,11 @@ TEST(parser_expr, call_indirect_table_index)
  module.tablesec.emplace_back(Table{{1, 1}});
  const auto code1_bin = i32_const(0) + "1100000b"_bytes;
  - const auto [code, pos] = parse_expr(code1_bin, 0, module);
  + const auto [code, pos] = parse_expr(code1_bin, 0, {}, module);
  EXPECT_EQ(code.instructions, (std::vector{Instr::i32_const, Instr::call_indirect, Instr::end}));
  const auto code2_bin = i32_const(0) + "1100010b"_bytes;
  - EXPECT_THROW_MESSAGE(parse_expr(code2_bin, 0, module), parser_error,
  + EXPECT_THROW_MESSAGE(parse_expr(code2_bin, 0, {}, module), parser_error,
  "invalid tableidx encountered with call_indirect");
  }
  @@ -494,7 +494,7 @@ TEST(parser_expr, immediate_leb128_out_of_bounds)
  Instr::call_indirect, Instr::i32_const, Instr::i64_const})
  {
  const auto code = i32_const(0) + i32_const(0) + bytes{uint8_t(instr), 0x99};
  - EXPECT_THROW_MESSAGE(parse_expr(code, 0, module), parser_error, "unexpected EOF");
  + EXPECT_THROW_MESSAGE(parse_expr(code, 0, {}, module), parser_error, "unexpected EOF");
  }
  }
  @@ -547,7 +547,7 @@ TEST(parser_expr, call_indirect_out_of_bounds)
  module.tablesec.emplace_back(Table{{1, 1}});
  EXPECT_THROW_MESSAGE(
  - parse_expr(i32_const(0) + "1100"_bytes, 0, module), parser_error, "unexpected EOF");
  + parse_expr(i32_const(0) + "1100"_bytes, 0, {}, module), parser_error, "unexpected EOF");
  }
  TEST(parser_expr, memory_grow_out_of_bounds)
  