Skip to content

Commit

Permalink
Refs #20533: Added check for TK_NONE keys
Browse files Browse the repository at this point in the history
Signed-off-by: adriancampo <[email protected]>
  • Loading branch information
adriancampo committed Mar 4, 2024
1 parent bc87e17 commit 892e4a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ if (type_ids.type_identifier1()._d() == TI_PLAIN_MAP_SMALL)
EXPECT_EQ(type_ids.type_identifier1().map_sdefn().header().equiv_kind(), EK_BOTH);
EXPECT_TRUE(element_type_ids.type_identifier1() == *type_ids.type_identifier1().map_sdefn().element_identifier());
EXPECT_TRUE(key_type_ids.type_identifier1() == *type_ids.type_identifier1().map_sdefn().key_identifier());
EXPECT_TRUE(element_type_ids.type_identifier2() == TK_NONE);
EXPECT_TRUE(element_type_ids.type_identifier2() == TK_NONE && key_type_ids.type_identifier2() == TK_NONE);
}
else
{
Expand Down Expand Up @@ -1313,7 +1313,7 @@ else
EXPECT_EQ(type_ids.type_identifier1().map_ldefn().header().equiv_kind(), EK_BOTH);
EXPECT_TRUE(element_type_ids.type_identifier1() == *type_ids.type_identifier1().map_ldefn().element_identifier());
EXPECT_TRUE(key_type_ids.type_identifier1() == *type_ids.type_identifier1().map_ldefn().key_identifier());
EXPECT_TRUE(element_type_ids.type_identifier2() == TK_NONE);
EXPECT_TRUE(element_type_ids.type_identifier2() == TK_NONE && key_type_ids.type_identifier2() == TK_NONE);
}
else
{
Expand Down

0 comments on commit 892e4a6

Please sign in to comment.