aboutsummaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
Diffstat (limited to 'test/common')
-rw-r--r--test/common/StringUtilTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/common/StringUtilTest.cpp b/test/common/StringUtilTest.cpp
index e454505b..21a9ea9c 100644
--- a/test/common/StringUtilTest.cpp
+++ b/test/common/StringUtilTest.cpp
@@ -26,6 +26,12 @@ TEST(WinString, Utf16Iterator) {
ASSERT_EQ(i.Next(), 0x1F923);
ASSERT_EQ(i.Next(), 0x0021);
ASSERT_EQ(i.Next(), k_invalid_code_point);
+ ASSERT_EQ(i.Previous(), 0x0021);
+ ASSERT_EQ(i.Previous(), 0x1F923);
+ ASSERT_EQ(i.Previous(), 0x4F60);
+ ASSERT_EQ(i.Previous(), 0x03C0);
+ ASSERT_EQ(i.Previous(), 0x0061);
+ ASSERT_EQ(i.Previous(), k_invalid_code_point);
}
// TEST(WinString, IndexUtf8ToUtf16) {