MCPcopy Create free account
hub / github.com/KLayout/klayout / test_5

Method test_5

testdata/ruby/dbLayoutDiff.rb:259–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 end
258
259 def test_5
260
261 a = RBA::Layout::new
262 c1a = a.create_cell("C1")
263 c2a = a.create_cell("C2")
264 c1a.insert(RBA::CellInstArray::new(c2a.cell_index, RBA::Trans::new(10, 20)))
265
266 b = RBA::Layout::new
267 c1b = b.create_cell("C1")
268 c2b = b.create_cell("C2X")
269 c1b.insert(RBA::CellInstArray::new(c2b.cell_index, RBA::Trans::new(11, 21)))
270
271 res = compare(a, b)
272 assert_equal(res, <<"END")
273on_cell_in_a_only C2
274on_cell_in_b_only C2X
275on_begin_cell C1 C1
276on_begin_inst_differences
277on_instance_in_a_only #1 r0 10,20 0
278on_instance_in_b_only #1 r0 11,21 0
279on_end_inst_differences
280on_end_cell
281END
282
283 end
284
285 def test_6
286

Callers

nothing calls this directly

Calls 4

compareFunction · 0.70
create_cellMethod · 0.45
insertMethod · 0.45
cell_indexMethod · 0.45

Tested by

no test coverage detected