Adding test for QChar(int)
This commit is contained in:
parent
babe9db551
commit
fceead0efe
1 changed files with 11 additions and 0 deletions
|
|
@ -28,6 +28,17 @@ class ImplicitConvQLatin1Char(unittest.TestCase):
|
||||||
self.assertEqual(QChar('-'), stream.padChar())
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue