You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Point: Unit tests for new constructor
This commit is contained in:
@@ -59,6 +59,16 @@ TEST(XY_Constructor)
|
||||
CHECK_EQUAL(openshot::InterpolationType::BEZIER, p1.interpolation);
|
||||
}
|
||||
|
||||
TEST(Pair_Constructor)
|
||||
{
|
||||
// Create a point from a std::pair
|
||||
std::pair<int, int> coordinates(22, 5);
|
||||
openshot::Point p1(coordinates);
|
||||
|
||||
CHECK_EQUAL(22, p1.co.X);
|
||||
CHECK_EQUAL(5, p1.co.Y);
|
||||
}
|
||||
|
||||
TEST(Constructor_With_Coordinate)
|
||||
{
|
||||
// Create a point with a coordinate
|
||||
|
||||
Reference in New Issue
Block a user