summaryrefslogtreecommitdiff
path: root/tools/aapt2/Resource_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aapt2/Resource_test.cpp')
-rw-r--r--tools/aapt2/Resource_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt2/Resource_test.cpp b/tools/aapt2/Resource_test.cpp
index 720ab91c5740..6acb4d3eb850 100644
--- a/tools/aapt2/Resource_test.cpp
+++ b/tools/aapt2/Resource_test.cpp
@@ -57,6 +57,10 @@ TEST(ResourceTypeTest, ParseResourceTypes) {
ASSERT_NE(type, nullptr);
EXPECT_EQ(*type, ResourceType::kDrawable);
+ type = ParseResourceType("font");
+ ASSERT_NE(type, nullptr);
+ EXPECT_EQ(*type, ResourceType::kFont);
+
type = ParseResourceType("fraction");
ASSERT_NE(type, nullptr);
EXPECT_EQ(*type, ResourceType::kFraction);