Skip to content

Commit

Permalink
Update test/unittests/parser_expr_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast authored May 25, 2020
1 parent 94b6f37 commit e3bacc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittests/parser_expr_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ TEST(parser_expr, call_1arg_1result)
ASSERT_EQ(module.codesec.size(), 2);
}

TEST(parser_expr, call_unexisted_typeid)
TEST(parser_expr, call_nonexisting_typeidx)
{
// This creates a wasm module where code[0] has a call instruction calling function[1] which
// has invalid type_idx 1.
Expand All @@ -361,4 +361,4 @@ TEST(parser_expr, call_unexisted_typeid)
make_section(10, make_vec({"040010010b"_bytes, "02000b"_bytes}));

EXPECT_THROW_MESSAGE(parse(wasm), validation_error, "invalid function type index");
}
}

0 comments on commit e3bacc4

Please sign in to comment.