WIP: refinement of Python and Ruby support for keyword arguments.

This commit is contained in:
Matthias Koefferlein
2023-12-27 22:56:11 +01:00
parent 8f9b904d87
commit 940ef5319a
6 changed files with 47 additions and 10 deletions
+8
View File
@@ -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)