mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 17:30:09 +02:00
WIP: provisions for DRC/network extractor integration.
This commit is contained in:
Vendored
+3
@@ -33,8 +33,10 @@ class DBEdgePairs_TestClass < TestBase
|
||||
assert_equal(r.is_empty?, true)
|
||||
assert_equal(r.size, 0)
|
||||
assert_equal(r.bbox.to_s, "()")
|
||||
data_id = r.data_id
|
||||
|
||||
r.insert(RBA::Edge::new(0, 0, 0, 100), RBA::Edge::new(-10, 0, -20, 50))
|
||||
assert_equal(data_id != r.data_id, true)
|
||||
assert_equal(r.to_s, "(0,0;0,100)/(-10,0;-20,50)")
|
||||
r.clear
|
||||
|
||||
@@ -55,6 +57,7 @@ class DBEdgePairs_TestClass < TestBase
|
||||
assert_equal(r.moved(-10, 10).to_s, "(-10,10;-10,110)/(-20,10;-30,60)")
|
||||
assert_equal(r.moved(RBA::Point::new(-10, 10)).to_s, "(-10,10;-10,110)/(-20,10;-30,60)")
|
||||
rr = r.dup
|
||||
assert_equal(rr.data_id != r.data_id, true)
|
||||
rr.move(-10, 10)
|
||||
assert_equal(rr.to_s, "(-10,10;-10,110)/(-20,10;-30,60)")
|
||||
rr = r.dup
|
||||
|
||||
Vendored
+3
@@ -34,8 +34,10 @@ class DBEdges_TestClass < TestBase
|
||||
assert_equal(r.size, 0)
|
||||
assert_equal(r.bbox.to_s, "()")
|
||||
assert_equal(r.is_merged?, true)
|
||||
data_id = r.data_id
|
||||
|
||||
r.assign(RBA::Edges::new([RBA::Edge::new(10, 20, 100, 200)]))
|
||||
assert_equal(data_id != r.data_id, true)
|
||||
assert_equal(r.to_s, "(10,20;100,200)")
|
||||
assert_equal(r.is_empty?, false)
|
||||
assert_equal(r.size, 1)
|
||||
@@ -72,6 +74,7 @@ class DBEdges_TestClass < TestBase
|
||||
assert_equal(r.moved(RBA::Point::new(10, 20)).bbox.to_s, "(20,40;110,220)")
|
||||
assert_equal(r.moved(10, 20).bbox.to_s, "(20,40;110,220)")
|
||||
rr = r.dup
|
||||
assert_equal(rr.data_id != r.data_id, true)
|
||||
rr.move(RBA::Point::new(10, 20))
|
||||
assert_equal(rr.bbox.to_s, "(20,40;110,220)")
|
||||
rr = r.dup
|
||||
|
||||
Vendored
+3
@@ -35,8 +35,10 @@ class DBRegion_TestClass < TestBase
|
||||
assert_equal(r.bbox.to_s, "()")
|
||||
assert_equal(r.is_merged?, true)
|
||||
assert_equal(r.is_box?, false)
|
||||
data_id = r.data_id
|
||||
|
||||
r.assign(RBA::Region::new(RBA::Box::new(10, 20, 100, 200)))
|
||||
assert_equal(data_id != r.data_id, true)
|
||||
assert_equal(r.to_s, "(10,20;10,200;100,200;100,20)")
|
||||
assert_equal(r.is_empty?, false)
|
||||
assert_equal(r.size, 1)
|
||||
@@ -48,6 +50,7 @@ class DBRegion_TestClass < TestBase
|
||||
assert_equal(r.moved(RBA::Point::new(10, 20)).bbox.to_s, "(20,40;110,220)")
|
||||
assert_equal(r.moved(10, 20).bbox.to_s, "(20,40;110,220)")
|
||||
rr = r.dup
|
||||
assert_equal(rr.data_id != r.data_id, true)
|
||||
rr.move(RBA::Point::new(10, 20))
|
||||
assert_equal(rr.bbox.to_s, "(20,40;110,220)")
|
||||
rr = r.dup
|
||||
|
||||
Reference in New Issue
Block a user