forked from OSchip/llvm-project
[ADT] Add unit test for PrintHTMLEscaped
Add unit tests for PrintHTMLEscaped which was added in r333565. llvm-svn: 333590
This commit is contained in:
parent
2600c63d96
commit
50603518a0
|
@ -92,3 +92,10 @@ TEST(StringExtrasTest, printLowerCase) {
|
|||
printLowerCase("ABCdefg01234.,&!~`'}\"", OS);
|
||||
EXPECT_EQ("abcdefg01234.,&!~`'}\"", OS.str());
|
||||
}
|
||||
|
||||
TEST(StringExtrasTest, PrintHTMLEscaped) {
|
||||
std::string str;
|
||||
raw_string_ostream OS(str);
|
||||
PrintHTMLEscaped("ABCdef123&<>\"'", OS);
|
||||
EXPECT_EQ("ABCdef123&<>"'", OS.str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue