3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-01-19 08:43:20 +00:00

newcelltypes: proper bounds for unit test

This commit is contained in:
Emil J. Tywoniak 2025-11-26 13:15:02 +01:00
parent e8f7845c5b
commit 7f436ecc07

View file

@ -23,7 +23,7 @@ TEST(CellTypesTest, basic)
EXPECT_EQ(older.cell_known(ID(aaaaa)), newer.cell_known(ID(aaaaa)));
EXPECT_EQ(older.cell_known(ID($and)), newer.cell_known(ID($and)));
for (size_t i = 0; i < 1000; i++) {
for (size_t i = 0; i < static_cast<size_t>(RTLIL::StaticId::STATIC_ID_END); i++) {
IdString type;
type.index_ = i;
if (older.cell_known(type) != newer.cell_known(type))