aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-02-20 19:22:26 -0300
committerLauro Neto <lauro.neto@openbossa.org>2010-02-22 12:33:29 -0300
commitfceead0efef4b6b833546ecd331f21dc878719c8 (patch)
tree6bda8214651a6c13cac8e64f19d5836864647740 /tests
parentbabe9db5515e38635e04c2fd018fcfe5b24d40e8 (diff)
Adding test for QChar(int)
Diffstat (limited to 'tests')
-rw-r--r--tests/qtcore/qchar_test.py11
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()