Make Const::as_string work without reducing packed bits to vector<State>

This commit is contained in:
Robert O'Callahan
2025-09-16 03:17:24 +00:00
parent f61e3377a9
commit cb1186aac5
2 changed files with 16 additions and 10 deletions
+7
View File
@@ -124,6 +124,13 @@ namespace RTLIL {
EXPECT_TRUE(c.as_bool());
EXPECT_TRUE(c.is_str());
}
{
Const c(0x2, 8);
EXPECT_TRUE(c.is_str());
EXPECT_EQ(c.as_string(), "00000010");
EXPECT_TRUE(c.is_str());
}
}
TEST_F(KernelRtlilTest, ConstConstIteratorWorks) {