Chromium Code Reviews| Index: Source/wtf/ASCIICTypeTest.cpp |
| diff --git a/Source/wtf/ASCIICTypeTest.cpp b/Source/wtf/ASCIICTypeTest.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf5fe6495fc29bbda305a5cb96ab3356a1056191 |
| --- /dev/null |
| +++ b/Source/wtf/ASCIICTypeTest.cpp |
| @@ -0,0 +1,16 @@ |
| +// 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 "config.h" |
| +#include "wtf/ASCIICType.h" |
| + |
| +#include <gtest/gtest.h> |
| + |
| +TEST(WTF, ASCIICaseFoldTable) |
|
tkent
2015/06/12 07:55:47
Please change to:
namespace WTF {
TEST(ASCIICTyp
|
| +{ |
| + LChar symbol = 0xff; |
| + while (symbol--) { |
| + EXPECT_EQ(WTF::toASCIILower<LChar>(symbol), WTF::ASCIICaseFoldTable[symbol]); |
| + } |
| +} |