mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-14 13:07:11 +08:00
adding tests
This commit is contained in:
16
tests/hello_test.cpp
Normal file
16
tests/hello_test.cpp
Normal 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());
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user