From 1122e61f0d30a61fa482dc1b8e6a36c57ff83b3d Mon Sep 17 00:00:00 2001 From: zovjsra <58198508+Zovjsra@users.noreply.github.com> Date: Tue, 13 Dec 2022 14:28:26 +0800 Subject: [PATCH] change test --- unittest/test_test.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/unittest/test_test.cc b/unittest/test_test.cc index 9360e1e..a70b0f0 100644 --- a/unittest/test_test.cc +++ b/unittest/test_test.cc @@ -7,4 +7,12 @@ TEST(SphereTest, ConstructorTest) { EXPECT_EQ(sph.getOrigin()[1], 1); EXPECT_EQ(sph.getOrigin()[2], 2); EXPECT_EQ(sph.getRadius(), 3); -} \ No newline at end of file +} + +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); +}