Base: fix incorrect method names of Matrix class about diagonal and trace

This commit is contained in:
wmayer
2023-08-29 15:12:18 +02:00
committed by wwmayer
parent 939984bf2c
commit 4f6ab508d7
5 changed files with 36 additions and 21 deletions

View File

@@ -638,9 +638,9 @@ class MatrixTestCase(unittest.TestCase):
self.mat.setCol(0, FreeCAD.Vector(1, 0, 0))
self.mat.setRow(0, FreeCAD.Vector(1, 0, 0))
def testTrace(self):
def testDiagonal(self):
self.mat.scale(2.0, 2.0, 2.0)
self.assertEqual(self.mat.trace(), FreeCAD.Vector(2.0, 2.0, 2.0))
self.assertEqual(self.mat.diagonal(), FreeCAD.Vector(2.0, 2.0, 2.0))
def testNumberProtocol(self):
with self.assertRaises(NotImplementedError):