From: Mikko Rasa Date: Mon, 23 Jan 2023 11:38:50 +0000 (+0200) Subject: Adjust test cases to match changes in the library X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=264ad458cd0f6ef9fb7b15bfe5314d66ac28d63d;p=libs%2Fmath.git Adjust test cases to match changes in the library --- diff --git a/tests/matrix.cpp b/tests/matrix.cpp index 6f57888..f11b068 100644 --- a/tests/matrix.cpp +++ b/tests/matrix.cpp @@ -1,6 +1,5 @@ #include #include -#include #include using namespace std; @@ -9,10 +8,10 @@ using namespace Msp; class MatrixTests: public Test::RegisteredTest { private: - typedef LinAl::SquareMatrix Matrix2d; + typedef LinAl::Matrix Matrix2d; typedef LinAl::Matrix Matrix3x2d; typedef LinAl::Matrix Matrix2x3d; - typedef LinAl::SquareMatrix Matrix3d; + typedef LinAl::Matrix Matrix3d; public: MatrixTests(); diff --git a/tests/transformedshape.cpp b/tests/transformedshape.cpp index 540e9b8..43f89c6 100644 --- a/tests/transformedshape.cpp +++ b/tests/transformedshape.cpp @@ -22,7 +22,7 @@ TransformedShapeTests::TransformedShapeTests() void TransformedShapeTests::ray_intersection() { - Geometry::TransformedShape shape(Geometry::Rectangle(2, 1), Geometry::AffineTransformation::rotation(Geometry::Angle::from_degrees(45))); + Geometry::TransformedShape shape(Geometry::Rectangle(2, 1), Geometry::AffineTransform::rotation(Geometry::Angle::from_degrees(45))); Geometry::Ray ray(LinAl::Vector(3, 1.05), LinAl::Vector(-1, 0)); EXPECT(shape.check_intersection(ray)); ray = Geometry::Ray(LinAl::Vector(2.65, 3.35), LinAl::Vector(-1, -1));