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 | 3828a99ba66a8eceec9a6b29a6912f654baaa533 (patch) | |
| tree | d21a300a9bd1a48156cde1333ca09767a00092d6 /llvm/unittests/ADT/StringRefTest.cpp | |
| parent | e8f2185a2f3da1e258322596649a747fded0e272 (diff) | |
| download | bcm5719-llvm-3828a99ba66a8eceec9a6b29a6912f654baaa533.tar.gz bcm5719-llvm-3828a99ba66a8eceec9a6b29a6912f654baaa533.zip | |
Fix pasto in StringRef::count(char)
llvm-svn: 79356
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
| -rw-r--r-- | llvm/unittests/ADT/StringRefTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp index ef89e9f3f9d..320633aca8a 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); |

