adding tests

This commit is contained in:
Luis Fraguada
2023-11-20 16:22:07 +01:00
parent d41d779de7
commit a01e682763
4 changed files with 62 additions and 0 deletions

16
tests/hello_test.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include <gtest/gtest.h>
#include "../opennurbs_public.h"
# define M_PI 3.14159265358979323846 /* pi */
TEST(HelloTest, BasicAssertions) {
ON_3dPoint center(0,0,0);
ON_Circle circle(center, 10.00);
double circumference = 2 * M_PI * circle.radius;
EXPECT_EQ(circumference, circle.Circumference());
}