diff options
Diffstat (limited to 'tests/samplebinding/point_test.py')
-rw-r--r-- | tests/samplebinding/point_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/samplebinding/point_test.py b/tests/samplebinding/point_test.py index 752302c74..ae7cac0bb 100644 --- a/tests/samplebinding/point_test.py +++ b/tests/samplebinding/point_test.py @@ -83,6 +83,15 @@ class PointTest(unittest.TestCase): self.assertRaises(OverflowError, pt1.setXAsUint, 840835495615213080) self.assertEqual(pt1.x(), 0.0) + def testAddedOperator(self): + p = Point(0.0, 0.0) + r = p - u'Hi' + self.assertEqual(r, u'Hi') + + # now the reverse op. + r = u'Hi' - p + self.assertEqual(r, u'Hi') + if __name__ == '__main__': unittest.main() |