From 264ad458cd0f6ef9fb7b15bfe5314d66ac28d63d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 23 Jan 2023 13:38:50 +0200 Subject: [PATCH] Adjust test cases to match changes in the library --- tests/matrix.cpp | 5 ++--- tests/transformedshape.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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)); -- 2.45.2