change test

master
zovjsra 2 years ago
parent 070cb1211d
commit 1122e61f0d

@ -8,3 +8,11 @@ TEST(SphereTest, ConstructorTest) {
EXPECT_EQ(sph.getOrigin()[2], 2);
EXPECT_EQ(sph.getRadius(), 3);
}
TEST(SphereTest, ConstructorTest2) {
Sphere sph(0, 1, 2, -3);
EXPECT_EQ(sph.getOrigin()[0], 0);
EXPECT_EQ(sph.getOrigin()[1], 1);
EXPECT_EQ(sph.getOrigin()[2], 2);
EXPECT_EQ(sph.getRadius(), 0);
}

Loading…
Cancel
Save