awtk/tests/enums_test.cc

9 lines
291 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"
#include "base/resource_manager.h"
TEST(Enums, basic) {
2018-08-19 19:12:35 +08:00
ASSERT_EQ(resource_type_find("style"), resource_type_find_by_value(RESOURCE_TYPE_STYLE));
2018-03-26 07:36:18 +08:00
ASSERT_EQ(resource_type_find("xml"), resource_type_find_by_value(RESOURCE_TYPE_XML));
2018-03-09 21:54:46 +08:00
}