mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-08 12:13:41 +02:00
Implemented LayerInfo for DRC input/output
- Added a "layers" function too - Updated tests - Updated documentation
This commit is contained in:
Vendored
+8
-2
@@ -1,4 +1,6 @@
|
||||
|
||||
big_tests = false
|
||||
|
||||
verbose(true)
|
||||
|
||||
source(File.dirname(__FILE__) + "/drctest.gds", "TOPTOP")
|
||||
@@ -23,11 +25,15 @@ def run_testsuite(dm, ic, tiled = false)
|
||||
|
||||
lb = 100
|
||||
|
||||
a = input(1)
|
||||
a = input(RBA::LayerInfo::new(1, 0))
|
||||
b = input(2)
|
||||
c = input(3)
|
||||
x = input(10)
|
||||
y = input(11)
|
||||
|
||||
h = {}
|
||||
layers.each { |l| h[l] = true }
|
||||
h[RBA::LayerInfo::new(1, 0)] || raise("missing layer 1/0 in layers list")
|
||||
|
||||
c.is_merged? == false || raise("unexpected value")
|
||||
|
||||
@@ -40,7 +46,7 @@ def run_testsuite(dm, ic, tiled = false)
|
||||
a.and(b).xor(l1).is_empty? || raise("xor not empty")
|
||||
tiled || (a.and(b).is_merged? == true || raise("unexpected value"))
|
||||
|
||||
a.xor(b).output(lb + 1, dm)
|
||||
a.xor(b).output(RBA::LayerInfo::new(lb + 1, dm))
|
||||
a.xor(b).xor(a ^ b).is_empty? || raise("xor not empty")
|
||||
a.not(b).output(lb + 2, dm)
|
||||
a.not(b).xor(a - b).is_empty? || raise("xor not empty")
|
||||
|
||||
Vendored
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
inst=$(dirname $0)
|
||||
|
||||
export LD_LIBRARY_PATH=.
|
||||
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
|
||||
|
||||
make klayout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user