summaryrefslogtreecommitdiffstats
path: root/tests/unit/locale_test.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-04-23 20:26:08 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-04-23 20:26:08 +0200
commit3e165c8607781160a727e5a4f19ce7db990128c7 (patch)
tree81e9b527c47bf3379d8080a228e929b19a3cd56b /tests/unit/locale_test.cpp
parentMerge "minadbd: Support rescue install and getprop commands." am: f365574a60 (diff)
parentMerge changes Ibdb7dd0b,Iafd3e846 (diff)
downloadandroid_bootable_recovery-3e165c8607781160a727e5a4f19ce7db990128c7.tar
android_bootable_recovery-3e165c8607781160a727e5a4f19ce7db990128c7.tar.gz
android_bootable_recovery-3e165c8607781160a727e5a4f19ce7db990128c7.tar.bz2
android_bootable_recovery-3e165c8607781160a727e5a4f19ce7db990128c7.tar.lz
android_bootable_recovery-3e165c8607781160a727e5a4f19ce7db990128c7.tar.xz
android_bootable_recovery-3e165c8607781160a727e5a4f19ce7db990128c7.tar.zst
android_bootable_recovery-3e165c8607781160a727e5a4f19ce7db990128c7.zip
Diffstat (limited to 'tests/unit/locale_test.cpp')
-rw-r--r--tests/unit/locale_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/locale_test.cpp b/tests/unit/locale_test.cpp
index cdaba0e8b..c69434c12 100644
--- a/tests/unit/locale_test.cpp
+++ b/tests/unit/locale_test.cpp
@@ -27,7 +27,7 @@ TEST(LocaleTest, Misc) {
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"));
+ // Empty locale prefix in the PNG file should not match the input locale.
+ EXPECT_FALSE(matches_locale("", "en-US"));
EXPECT_TRUE(matches_locale("sr-Latn", "sr-Latn-BA"));
}