summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-06-15 14:49:26 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-06-15 15:13:56 -0300
commit93262f84164a48800024b61479ff16561ed811fa (patch)
treea304f416c65c5e2ebd5bd4707eab82e59ee842c7 /tests/samplebinding
parentc2683738a2c42447a03f0a6f369e89447374ab54 (diff)
downloadshiboken-93262f84164a48800024b61479ff16561ed811fa.tar.gz
shiboken-93262f84164a48800024b61479ff16561ed811fa.tar.xz
shiboken-93262f84164a48800024b61479ff16561ed811fa.zip
Adds a test for function call that triggers an implicit conversion.
Diffstat (limited to 'tests/samplebinding')
-rwxr-xr-xtests/samplebinding/time_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/samplebinding/time_test.py b/tests/samplebinding/time_test.py
index e8553695..b08b65ff 100755
--- a/tests/samplebinding/time_test.py
+++ b/tests/samplebinding/time_test.py
@@ -112,6 +112,12 @@ class TimeTest(unittest.TestCase):
result = time.somethingCompletelyDifferent(1, 2)
self.assertEqual(result, Time.TwoArgs)
+ def testMethodWithThreeParamersAndImplicitConversion(self):
+ '''Method with 3 parameters, the last one triggers an implicit conversion.'''
+ time = Time()
+ result = time.somethingCompletelyDifferent(1, 2, ImplicitConv.CtorOne)
+ self.assertEqual(result, Time.ThreeArgs)
+
if __name__ == '__main__':
unittest.main()