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

Method test_4

testdata/ruby/dbLayoutDiff.rb:223–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 end
222
223 def test_4
224
225 a = RBA::Layout::new
226 c1a = a.create_cell("C1")
227 c2a = a.create_cell("C2")
228 c1a.insert(RBA::CellInstArray::new(c2a.cell_index, RBA::Trans::new(10, 20)))
229
230 b = RBA::Layout::new
231 c1b = b.create_cell("C1")
232 c2b = b.create_cell("C2")
233 c1b.insert(RBA::CellInstArray::new(c2b.cell_index, RBA::Trans::new(11, 21)))
234
235 res = compare(a, b)
236 assert_equal(res, <<"END")
237on_begin_cell C1 C1
238on_begin_inst_differences
239on_instance_in_a_only #1 r0 *1 10,20 0
240on_instance_in_b_only #1 r0 *1 11,21 0
241on_end_inst_differences
242on_end_cell
243on_begin_cell C2 C2
244on_end_cell
245END
246
247 res = compare(a, b, 0)
248 assert_equal(res, <<"END")
249on_begin_cell C1 C1
250on_begin_inst_differences
251on_end_inst_differences
252on_end_cell
253on_begin_cell C2 C2
254on_end_cell
255END
256
257 end
258
259 def test_5
260

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