3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-12 20:51:27 +00:00

Update tests to avoid bits()

This commit is contained in:
Robert O'Callahan 2025-08-28 01:56:27 +00:00
parent 975bbf2d6d
commit f9ee5e4c31

View file

@ -80,10 +80,10 @@ namespace RTLIL {
EXPECT_EQ(i, 16);
EXPECT_TRUE(cs1.is_str());
// It can be mutated with the bits() view
// and decays into unpacked
for (auto& bit : cs1.bits()) {
bit = State::Sx;
// It can be mutated via bit iteration and decays into unpacked
// when an non-defined bit is set.
for (auto b : cs1) {
b = State::Sx;
}
EXPECT_TRUE(cs1.is_bits());
}