3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-03-01 11:16:55 +00:00

modtools: fix unit test

This commit is contained in:
Emil J. Tywoniak 2026-02-25 18:53:20 +01:00
parent b126c95ef1
commit 23757409ee
2 changed files with 4 additions and 2 deletions

View file

@ -78,6 +78,8 @@ struct ModIndex : public RTLIL::Monitor
SigMap sigmap;
private:
friend class ModIndexTest;
FRIEND_TEST(ModIndexTest, swap);
struct sigbit_pointer_hash
{
std::size_t operator()(const Yosys::RTLIL::SigBit& s) const noexcept

View file

@ -5,7 +5,7 @@
YOSYS_NAMESPACE_BEGIN
TEST(ModIndexSwapTest, has)
TEST(ModIndexTest, swap)
{
Design* d = new Design;
Module* m = d->addModule("$m");
@ -26,7 +26,7 @@ TEST(ModIndexSwapTest, has)
}
}
TEST(ModIndexDeleteTest, has)
TEST(ModIndexTest, modify)
{
if (log_files.empty()) log_files.emplace_back(stdout);
Design* d = new Design;