mirror of https://github.com/KLayout/klayout.git
Added test.
This commit is contained in:
parent
716aa3c87b
commit
bc78f4a0e9
|
|
@ -704,3 +704,24 @@ TEST(5_issue893)
|
||||||
db::compare_layouts (_this, layout, fn_au, db::WriteGDS2, 1);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue