def test_einheit_2x2(self): '''test identity matrix by dimention 2x2''' resm = lr.einheit(2) v1 = lr.Vector([1,0]) v2 = lr.Vector([0,1]) chkm = lr.Matrix([v1, v2]) self.assertEqual(resm, chkm)
def test_einheit_3x3(self): '''test identity matrix by dimention 3x3''' resm = lr.einheit(3) v1 = lr.Vector([1,0,0]) v2 = lr.Vector([0,1,0]) v3 = lr.Vector([0,0,1]) chkm = lr.Matrix([v1, v2, v3]) self.assertEqual(resm, chkm)