Skip to content

Commit

Permalink
Fix Point unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Dec 4, 2020
1 parent db7bf5f commit 0c93862
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Point_Tests.cpp
Expand Up @@ -62,11 +62,11 @@ TEST(XY_Constructor)
TEST(Pair_Constructor)
{
// Create a point from a std::pair
std::pair<int, int> coordinates(22, 5);
std::pair<double, double> coordinates(22, 5);
openshot::Point p1(coordinates);

CHECK_EQUAL(22, p1.co.X);
CHECK_EQUAL(5, p1.co.Y);
CHECK_CLOSE(22.0f, p1.co.X, 0.00001);
CHECK_CLOSE(5.0f, p1.co.Y, 0.00001);
}

TEST(Constructor_With_Coordinate)
Expand All @@ -75,8 +75,8 @@ TEST(Constructor_With_Coordinate)
openshot::Coordinate c1(3,7);
openshot::Point p1(c1);

CHECK_EQUAL(3, p1.co.X);
CHECK_EQUAL(7, p1.co.Y);
CHECK_CLOSE(3.0f, p1.co.X, 0.00001);
CHECK_CLOSE(7.0f, p1.co.Y, 0.00001);
CHECK_EQUAL(openshot::InterpolationType::BEZIER, p1.interpolation);
}

Expand Down

0 comments on commit 0c93862

Please sign in to comment.