提交 be70d54d 编写于 作者: L lianwenjie007 提交者: Gitee

update graphic_lite/graphic_utils/graphic_math_posix/src/graphic_math_test.cpp.

补充一个测试用例
上级 0af4e9ed
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册