mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-07 03:21:34 +02:00
Merge branch 'master' of https://github.com/KLayout/klayout
This commit is contained in:
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
* written by unit test
|
||||
|
||||
* cell SUBCKT
|
||||
* pin
|
||||
* pin A
|
||||
* pin V42
|
||||
* pin Z
|
||||
* pin gnd
|
||||
* pin gnd
|
||||
.SUBCKT SUBCKT \$1 A[5]<1> V42\x28\x25\x29 Z gnd gnd$1
|
||||
XD_$1 V42\x28\x25\x29 \$3 Z \$1 HVPMOS PARAMS: L=0.2 W=1 AS=0.18 AD=0.18
|
||||
+ PS=2.16 PD=2.16
|
||||
* device instance $2 r0 *1 0,0 HVPMOS
|
||||
XD_$2 V42\x28\x25\x29 A[5]<1> \$3 \$1 HVPMOS PARAMS: L=0.2 W=1 AS=0.18 AD=0.18
|
||||
+ PS=2.16 PD=2.16
|
||||
XD_$3 gnd \$3 gnd gnd$1 HVNMOS PARAMS: L=1.13 W=2.12 PS=6 PD=6 AS=0 AD=0
|
||||
XD_$4 gnd \$3 Z gnd$1 HVNMOS PARAMS: L=0.4 W=0.4 PS=1.16 PD=1.16 AS=0.19 AD=0.19
|
||||
XD_$5 gnd A[5]<1> \$3 gnd$1 HVNMOS PARAMS: L=0.4 W=0.4 PS=1.76 PD=1.76 AS=0.19 AD=0.19
|
||||
.ENDS SUBCKT
|
||||
.SUBCKT SUBCKT \$1 A[5]<1> V42\x28\x25\x29 Z gnd gnd$1
|
||||
XD_$13 gnd \$3 gnd gnd$1 HVNMOS PARAMS: L=1.13 W=2.12 PS=6 PD=6 AS=0 AD=0
|
||||
.ENDS SUBCKT
|
||||
Vendored
+34
@@ -530,6 +530,40 @@ class Ant_TestClass < TestBase
|
||||
|
||||
end
|
||||
|
||||
# each_annotation_selected
|
||||
def test_4
|
||||
|
||||
if !RBA.constants.member?(:Application)
|
||||
return
|
||||
end
|
||||
|
||||
mw = RBA::Application::instance.main_window
|
||||
mw.close_all
|
||||
mw.create_layout( 0 )
|
||||
lv = mw.current_view
|
||||
|
||||
a = annot_obj( RBA::DPoint::new( 1.0, 2.0 ), RBA::DPoint::new( 3.0, 4.0 ), "a", "b", "c", 1, 2, false, 3 )
|
||||
assert_equal( a.is_valid?, false )
|
||||
lv.insert_annotation( a )
|
||||
|
||||
mw.cm_select_all
|
||||
|
||||
arr = []
|
||||
lv.each_annotation_selected { |a| arr.push(a) }
|
||||
assert_equal(arr.size, 1)
|
||||
assert_equal(arr[0].to_s, "p1=1,2, p2=3,4, fmt=a, fmt_x=b, fmt_y=c, style=arrow_end, outline=diag_xy, snap=false, ac=horizontal")
|
||||
|
||||
arr[0].p1 = RBA::DPoint::new(11, 12)
|
||||
|
||||
arr = []
|
||||
lv.each_annotation_selected { |a| arr.push(a) }
|
||||
assert_equal(arr.size, 1)
|
||||
assert_equal(arr[0].to_s, "p1=11,12, p2=3,4, fmt=a, fmt_x=b, fmt_y=c, style=arrow_end, outline=diag_xy, snap=false, ac=horizontal")
|
||||
|
||||
mw.close_all
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
load("test_epilogue.rb")
|
||||
|
||||
Reference in New Issue
Block a user