From 7fba2a030e70159a0145e72f0dd7576e864b47d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 15 Jul 2019 12:45:19 +0200 Subject: [PATCH] python: test at least the temporary property. --- src/python/magnum/test/test_math.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/magnum/test/test_math.py b/src/python/magnum/test/test_math.py index 55e8a5b..aaf2515 100644 --- a/src/python/magnum/test/test_math.py +++ b/src/python/magnum/test/test_math.py @@ -638,7 +638,7 @@ class Matrix3_(unittest.TestCase): def test_static_methods(self): a = Matrix3.translation((0.0, -1.0)) self.assertEqual(a[2].xy, Vector2(0.0, -1.0)) - #self.assertEqual(a.translation, Vector2(0.0, -1.0)) # TODO + self.assertEqual(a._translation, Vector2(0.0, -1.0)) # TODO b = Matrix3.rotation(Deg(45.0)) self.assertEqual(b.rotation(), Matrix2x2( @@ -740,7 +740,7 @@ class Matrix4_(unittest.TestCase): def test_static_methods(self): a = Matrix4.translation((0.0, -1.0, 2.0)) self.assertEqual(a[3].xyz, Vector3(0.0, -1.0, 2.0)) - #self.assertEqual(a.translation, Vector3(0.0, -1.0, 2.0)) # TODO + self.assertEqual(a._translation, Vector3(0.0, -1.0, 2.0)) # TODO b = Matrix4.rotation(Deg(45.0), Vector3.x_axis()) self.assertEqual(b.rotation(), Matrix3x3(