awtk/tests/enums_test.cc

9 lines
271 B
C++
Raw Normal View History

2018-06-27 13:46:42 +08:00
#include "base/enums.h"
2018-03-09 21:54:46 +08:00
#include "gtest/gtest.h"
2018-08-24 07:45:37 +08:00
#include "base/assets_manager.h"
2018-03-09 21:54:46 +08:00
TEST(Enums, basic) {
2018-08-24 07:45:37 +08:00
ASSERT_EQ(asset_type_find("style"), asset_type_find_by_value(ASSET_TYPE_STYLE));
ASSERT_EQ(asset_type_find("xml"), asset_type_find_by_value(ASSET_TYPE_XML));
2018-03-09 21:54:46 +08:00
}