Skip to content

Commit

Permalink
Check struct name in struct parsing test
Browse files Browse the repository at this point in the history
  • Loading branch information
wpmed92 committed Aug 6, 2024
1 parent 6e2e4e4 commit c94f4fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/Parser/ParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ TEST(ParserTest, ParseStruct) {
EXPECT_EQ(externalDecl.size(), 1);
auto parsedStructDecl = dynamic_cast<StructDeclaration*>(externalDecl.at(0).get());

EXPECT_EQ(parsedStructDecl->getName(), "MyStruct");

EXPECT_EQ(parsedStructDecl->getMembers().size(), propertyNames.size());

Expand Down

0 comments on commit c94f4fe

Please sign in to comment.