You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
24 lines
426 B
C++
24 lines
426 B
C++
|
|
#include "UnitTest++.h"
|
||
|
|
#include "../include/OpenShot.h"
|
||
|
|
|
||
|
|
using namespace std;
|
||
|
|
using namespace openshot;
|
||
|
|
|
||
|
|
TEST(Coordinate_Default_Constructor)
|
||
|
|
{
|
||
|
|
// Create an empty coordinate
|
||
|
|
Coordinate c1;
|
||
|
|
|
||
|
|
CHECK_CLOSE(0.0f, c1.X, 0.00001);
|
||
|
|
CHECK_CLOSE(0.0f, c1.Y, 0.00001);
|
||
|
|
}
|
||
|
|
|
||
|
|
TEST(Coordinate_X_Y_Constructor)
|
||
|
|
{
|
||
|
|
// Create an empty coordinate
|
||
|
|
Coordinate c1(2,8);
|
||
|
|
|
||
|
|
CHECK_CLOSE(2.0f, c1.X, 0.00001);
|
||
|
|
CHECK_CLOSE(8.0f, c1.Y, 0.00001);
|
||
|
|
}
|