mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-28 17:06:31 +02:00
Reworking technology API a little: providing a way to register a new technology object, clarification of doc
This commit is contained in:
@@ -73,6 +73,16 @@ END
|
||||
RBA::Technology::remove_technology("MINE2")
|
||||
assert_equal(RBA::Technology::technology_names.inspect, '[""]')
|
||||
|
||||
# registration
|
||||
tech = RBA::Technology::new
|
||||
tech.name = "NEW"
|
||||
tech.dbu = 0.5
|
||||
tech_new = RBA::Technology::register_technology(tech)
|
||||
tech._destroy
|
||||
assert_equal(RBA::Technology::technology_names.inspect, '["", "NEW"]')
|
||||
assert_equal(tech_new.dbu, 0.5)
|
||||
assert_equal(tech_new.name, "NEW")
|
||||
|
||||
end
|
||||
|
||||
def test_2
|
||||
Reference in New Issue
Block a user