diff --git a/graphic_lite/graphic_utils/graphic_math_posix/src/graphic_math_test.cpp b/graphic_lite/graphic_utils/graphic_math_posix/src/graphic_math_test.cpp index 3001e158ebfabaa8c9c8e47dd17d687ea4dff655..703b9fdf2d84ebce360ad7ddd688d696eecf1ebf 100755 --- a/graphic_lite/graphic_utils/graphic_math_posix/src/graphic_math_test.cpp +++ b/graphic_lite/graphic_utils/graphic_math_posix/src/graphic_math_test.cpp @@ -36,4 +36,17 @@ void MathTest::TearDownTestCase() { return; } + +/** + * @tc.number SUB_GRAPHIC_MATH_FASTATAN2_0200 + * @tc.name test math fast-atan2 api + * @tc.desc [C- SOFTWARE -0200] + */ +HWTEST_F(MathTest, Graphic_Math_Test_FastAtan2_0100, Function | MediumTest | Level0) +{ + EXPECT_EQ(FastAtan2(0, 1), 0); + EXPECT_EQ(FastAtan2(1, 0), 90); + EXPECT_EQ(FastAtan2(0, -1), 180); + EXPECT_EQ(FastAtan2(-1, 0), 270); +} } \ No newline at end of file