Created unit test for bug #743.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
parent
000a323245
commit
640a428c9b
2 changed files with 16 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ PYSIDE_TEST(bug_722.py)
|
||||||
PYSIDE_TEST(bug_728.py)
|
PYSIDE_TEST(bug_728.py)
|
||||||
PYSIDE_TEST(bug_736.py)
|
PYSIDE_TEST(bug_736.py)
|
||||||
PYSIDE_TEST(bug_740.py)
|
PYSIDE_TEST(bug_740.py)
|
||||||
|
PYSIDE_TEST(bug_743.py)
|
||||||
PYSIDE_TEST(bug_793.py)
|
PYSIDE_TEST(bug_793.py)
|
||||||
PYSIDE_TEST(customproxywidget_test.py)
|
PYSIDE_TEST(customproxywidget_test.py)
|
||||||
PYSIDE_TEST(deepcopy_test.py)
|
PYSIDE_TEST(deepcopy_test.py)
|
||||||
|
|
|
||||||
15
tests/QtGui/bug_743.py
Normal file
15
tests/QtGui/bug_743.py
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from PySide.QtGui import QMatrix4x4
|
||||||
|
|
||||||
|
class TestQMatrix(unittest.TestCase):
|
||||||
|
def testOperator(self):
|
||||||
|
m = QMatrix4x4(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
|
||||||
|
v = 1
|
||||||
|
for x in range(4):
|
||||||
|
for y in range(4):
|
||||||
|
self.assertEqual(m[x,y], v)
|
||||||
|
v += 1
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue