mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 10:09:36 -06:00
Use 'contains' method
This commit is contained in:
@ -19,13 +19,13 @@ TEST(UniqueID, UniqueEnough)
|
||||
for (u32 i = 0x0C000000; i < 0x0C010000; ++i)
|
||||
{
|
||||
u32 unique_id = MMIO::UniqueID(i);
|
||||
EXPECT_EQ(ids.end(), ids.find(unique_id));
|
||||
EXPECT_FALSE(ids.contains(unique_id));
|
||||
ids.insert(unique_id);
|
||||
}
|
||||
for (u32 i = 0x0D000000; i < 0x0D010000; ++i)
|
||||
{
|
||||
u32 unique_id = MMIO::UniqueID(i);
|
||||
EXPECT_EQ(ids.end(), ids.find(unique_id));
|
||||
EXPECT_FALSE(ids.contains(unique_id));
|
||||
ids.insert(unique_id);
|
||||
}
|
||||
}
|
||||
|
@ -28,13 +28,13 @@ TEST(VertexLoaderUID, UniqueEnough)
|
||||
|
||||
vtx_desc.low.Hex = 0x76543210;
|
||||
vtx_desc.high.Hex = 0xFEDCBA98;
|
||||
EXPECT_EQ(uids.end(), uids.find(VertexLoaderUID(vtx_desc, vat)));
|
||||
EXPECT_FALSE(uids.contains(VertexLoaderUID(vtx_desc, vat)));
|
||||
uids.insert(VertexLoaderUID(vtx_desc, vat));
|
||||
|
||||
vat.g0.Hex = 0xFFFFFFFF;
|
||||
vat.g1.Hex = 0xFFFFFFFF;
|
||||
vat.g2.Hex = 0xFFFFFFFF;
|
||||
EXPECT_EQ(uids.end(), uids.find(VertexLoaderUID(vtx_desc, vat)));
|
||||
EXPECT_FALSE(uids.contains(VertexLoaderUID(vtx_desc, vat)));
|
||||
uids.insert(VertexLoaderUID(vtx_desc, vat));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user