diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtcore/qchar_test.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/qtcore/qchar_test.py b/tests/qtcore/qchar_test.py index 2aa234e46..9cf5cbebc 100644 --- a/tests/qtcore/qchar_test.py +++ b/tests/qtcore/qchar_test.py @@ -28,6 +28,17 @@ class ImplicitConvQLatin1Char(unittest.TestCase): self.assertEqual(QChar('-'), stream.padChar()) +class QCharCtorBigNumber(unittest.TestCase): + '''QChar constructors receiving ints''' + + def testInt(self): + '''QChar(int)''' + codepoint = 512 + qchar = QChar(codepoint) + reference = unichr(codepoint) + self.assertEqual(qchar.unicode(), codepoint) + + if __name__ == '__main__': unittest.main() |