mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-03 12:37:43 +08:00
16 lines
521 B
C++
16 lines
521 B
C++
#include "tkc/easing.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
static float_t easing_linear(float_t k) {
|
|
return k;
|
|
}
|
|
|
|
|
|
TEST(easing, easingreg) {
|
|
ASSERT_EQ(easing_register("test1", easing_linear), EASING_FUNC_NR + 1);
|
|
ASSERT_EQ(easing_register("test2", easing_linear), EASING_FUNC_NR + 2);
|
|
ASSERT_EQ(easing_register("test3", easing_linear), EASING_FUNC_NR + 3);
|
|
ASSERT_EQ(easing_register("test4", easing_linear), EASING_FUNC_NR + 4);
|
|
ASSERT_EQ(easing_register("test5", easing_linear), EASING_FUNC_NR + 5);
|
|
}
|