diff options
author | Tianjie Xu <xunchang@google.com> | 2017-01-19 20:20:36 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-19 20:20:36 +0100 |
commit | a38224eadb00ecb32fac0454b78f5a805259ebbf (patch) | |
tree | 8603c5d1df466bcec6dda5c88ad8cd3bc66cad6d /tests/unit | |
parent | Merge "minui: Export minui/minui.h." (diff) | |
parent | Merge "Add checkers and tests for empty locale in PNG file" (diff) | |
download | android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.gz android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.bz2 android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.lz android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.xz android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.zst android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.zip |
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/locale_test.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/locale_test.cpp b/tests/unit/locale_test.cpp index 0e515f8c1..f73235005 100644 --- a/tests/unit/locale_test.cpp +++ b/tests/unit/locale_test.cpp @@ -26,4 +26,7 @@ TEST(LocaleTest, Misc) { EXPECT_TRUE(matches_locale("en", "en_GB")); EXPECT_FALSE(matches_locale("en_GB", "en")); EXPECT_FALSE(matches_locale("en_GB", "en_US")); + EXPECT_FALSE(matches_locale("en_US", "")); + // Empty locale prefix in the PNG file will match the input locale. + EXPECT_TRUE(matches_locale("", "en_US")); } |