mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 01:14:35 +02:00
WIP: refinement of Python and Ruby support for keyword arguments.
This commit is contained in:
Vendored
+8
@@ -172,6 +172,14 @@ class KWArgsTest(unittest.TestCase):
|
||||
except Exception as ex:
|
||||
self.assertEqual(str(ex), "Value cannot be converted to a floating-point value for argument #2 ('dbu') in CplxTrans.to_s")
|
||||
|
||||
try:
|
||||
t = pya.CplxTrans(1.5, 2.5)
|
||||
tt = pya.CplxTrans()
|
||||
tt.assign(other = t)
|
||||
self.assertEqual(True, False)
|
||||
except Exception as ex:
|
||||
self.assertEqual(str(ex), "Keyword arguments not permitted in CplxTrans.assign")
|
||||
|
||||
try:
|
||||
t = pya.CplxTrans("17")
|
||||
self.assertEqual(True, False)
|
||||
|
||||
Reference in New Issue
Block a user