aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-18 18:34:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-18 18:34:22 +0000
commit3828a99ba66a8eceec9a6b29a6912f654baaa533 (patch)
treed21a300a9bd1a48156cde1333ca09767a00092d6 /llvm/unittests/ADT/StringRefTest.cpp
parente8f2185a2f3da1e258322596649a747fded0e272 (diff)
downloadllvm-3828a99ba66a8eceec9a6b29a6912f654baaa533.zip
llvm-3828a99ba66a8eceec9a6b29a6912f654baaa533.tar.gz
llvm-3828a99ba66a8eceec9a6b29a6912f654baaa533.tar.bz2
Fix pasto in StringRef::count(char)
llvm-svn: 79356
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
-rw-r--r--llvm/unittests/ADT/StringRefTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp
index ef89e9f..320633a 100644
--- a/llvm/unittests/ADT/StringRefTest.cpp
+++ b/llvm/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);