summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/wtf/ascii_ctype_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/wtf/ascii_ctype_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/platform/wtf/ascii_ctype_test.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/platform/wtf/ascii_ctype_test.cc b/chromium/third_party/blink/renderer/platform/wtf/ascii_ctype_test.cc
new file mode 100644
index 00000000000..32146f5f677
--- /dev/null
+++ b/chromium/third_party/blink/renderer/platform/wtf/ascii_ctype_test.cc
@@ -0,0 +1,18 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "third_party/blink/renderer/platform/wtf/ascii_ctype.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace WTF {
+
+TEST(ASCIICTypeTest, ASCIICaseFoldTable) {
+ LChar symbol = 0xff;
+ while (symbol--) {
+ EXPECT_EQ(ToASCIILower<LChar>(symbol), kASCIICaseFoldTable[symbol]);
+ }
+}
+
+} // namespace WTF