diff options
Diffstat (limited to 'llvm/unittests/ADT/StringExtrasTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/StringExtrasTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/StringExtrasTest.cpp b/llvm/unittests/ADT/StringExtrasTest.cpp index 234a40d26cf..7bcdaf62fe5 100644 --- a/llvm/unittests/ADT/StringExtrasTest.cpp +++ b/llvm/unittests/ADT/StringExtrasTest.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "llvm/ADT/StringExtras.h" +#include "llvm/Support/raw_ostream.h" #include "gtest/gtest.h" using namespace llvm; @@ -84,3 +85,10 @@ TEST(StringExtrasTest, to_float) { EXPECT_FALSE(to_float("7.4 foo", F)); EXPECT_FLOAT_EQ(4.7f, F); // F should be unchanged } + +TEST(StringExtrasTest, printLowerCase) { + std::string str; + raw_string_ostream OS(str); + printLowerCase("ABCdefg01234.,&!~`'}\"", OS); + EXPECT_EQ("abcdefg01234.,&!~`'}\"", OS.str()); +} |