[CString.StripControls] Improve test coverage formatting
This commit is contained in:
1 parent
032f00732a
commit
cc674b28e8
1 file changed
+18
@@ -270,4 +270,22 @@ TEST(StringTest, StripControls) {
|
||||
|
||||
// Strips reset foreground and set new background colour
|
||||
EXPECT_EQ(CString("\x03,03test").StripControls(), "test");
|
||||
|
||||
// Strips foreground and background colour
|
||||
EXPECT_EQ(CString("\x03\x30,03test").StripControls(), "test");
|
||||
|
||||
// Strips reset
|
||||
EXPECT_EQ(CString("\x0Ftest").StripControls(), "test");
|
||||
|
||||
// Strips reverse
|
||||
EXPECT_EQ(CString("\x12test").StripControls(), "test");
|
||||
|
||||
// Strips bold
|
||||
EXPECT_EQ(CString("\x02test").StripControls(), "test");
|
||||
|
||||
// Strips italics
|
||||
EXPECT_EQ(CString("\x16test").StripControls(), "test");
|
||||
|
||||
// Strips underline
|
||||
EXPECT_EQ(CString("\x1Ftest").StripControls(), "test");
|
||||
}
|
||||
Reference in new issue
Block a user