diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-12-01 19:58:24 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-12-03 12:53:14 +0100 |
| commit | 7647b5052968f6fa2de04e8f744c697844d5b275 (patch) | |
| tree | 6f5f9b395b54afc4128a44df0010656258ae9712 /sources/shiboken6/tests/samplebinding/intwrapper_test.py | |
| parent | cda6f0d89bf70102891c4214cc496e10d11e856f (diff) | |
shiboken6: Add tests for non-homogeneous comparison
Task-number: PYSIDE-3245
Change-Id: I84bac9ef5afdbb4356884a7933ed8209d886d836
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/intwrapper_test.py')
| -rw-r--r-- | sources/shiboken6/tests/samplebinding/intwrapper_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/intwrapper_test.py b/sources/shiboken6/tests/samplebinding/intwrapper_test.py index 04b2ff351..dc703b0e7 100644 --- a/sources/shiboken6/tests/samplebinding/intwrapper_test.py +++ b/sources/shiboken6/tests/samplebinding/intwrapper_test.py @@ -30,6 +30,13 @@ class IntWrapperTest(unittest.TestCase): i -= ten2 self.assertTrue(i == ten1) + def testNonHomogeneousComparison(self): + ten = IntWrapper(10) + self.assertTrue(ten == 10) + self.assertTrue(ten != 11) + self.assertTrue(10 == ten) + self.assertTrue(11 != ten) + def testAddPyMethodDef(self): """Test of added free function (PYSIDE-1905).""" i = IntWrapper(10) |
