Added test.

This commit is contained in:
Matthias Koefferlein 2024-09-01 21:26:25 +02:00
parent 716aa3c87b
commit bc78f4a0e9
3 changed files with 21 additions and 0 deletions

View File

@ -704,3 +704,24 @@ TEST(5_issue893)
db::compare_layouts (_this, layout, fn_au, db::WriteGDS2, 1);
}
// PCell saved as top cell
TEST(6_issue1835)
{
db::Manager m (false);
db::Layout layout (&m);
db::LoadLayoutOptions options;
{
tl::InputStream file (tl::testdata () + "/gds/issue_1835.gds");
db::Reader reader (file);
reader.read (layout, options);
}
tl_assert (layout.begin_top_down () != layout.end_top_cells ());
layout.convert_cell_to_static (*layout.begin_top_down ());
std::string fn_au (tl::testdata () + "/gds/issue_1835_au.gds");
db::compare_layouts (_this, layout, fn_au, db::WriteGDS2, 1);
}

BIN
testdata/gds/issue_1835.gds vendored Normal file

Binary file not shown.

BIN
testdata/gds/issue_1835_au.gds vendored Normal file

Binary file not shown.