diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-18 18:34:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-18 18:34:22 +0000 |
commit | 323a3e653340781bad4c4c3245d9b25d5ab02685 (patch) | |
tree | 0a5fc4cc1604d612094fcd1beada8c67309c8652 /unittests | |
parent | 4d919438898d542850449235da7f6dc55e6ca152 (diff) | |
download | external_llvm-323a3e653340781bad4c4c3245d9b25d5ab02685.zip external_llvm-323a3e653340781bad4c4c3245d9b25d5ab02685.tar.gz external_llvm-323a3e653340781bad4c4c3245d9b25d5ab02685.tar.bz2 |
Fix pasto in StringRef::count(char)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/ADT/StringRefTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/ADT/StringRefTest.cpp b/unittests/ADT/StringRefTest.cpp index ef89e9f..320633a 100644 --- a/unittests/ADT/StringRefTest.cpp +++ b/unittests/ADT/StringRefTest.cpp @@ -96,6 +96,7 @@ TEST(StringRefTest, Utilities) { EXPECT_TRUE(Str.find("zz") == StringRef::npos); EXPECT_TRUE(Str.count('l') == 2); + EXPECT_TRUE(Str.count('o') == 1); EXPECT_TRUE(Str.count('z') == 0); EXPECT_TRUE(Str.count("helloworld") == 0); EXPECT_TRUE(Str.count("hello") == 1); |