| 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") |
| 273 | on_cell_in_a_only C2 |
| 274 | on_cell_in_b_only C2X |
| 275 | on_begin_cell C1 C1 |
| 276 | on_begin_inst_differences |
| 277 | on_instance_in_a_only #1 r0 10,20 0 |
| 278 | on_instance_in_b_only #1 r0 11,21 0 |
| 279 | on_end_inst_differences |
| 280 | on_end_cell |
| 281 | END |
| 282 | |
| 283 | end |
| 284 | |
| 285 | def test_6 |
| 286 |
nothing calls this directly
no test coverage detected