Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/TestMain.cpp
diff options
context:
space:
mode:
authorPhil Nash2014-12-30 18:24:31 +0000
committerPhil Nash2014-12-30 18:24:31 +0000
commit6817bb099db44744cc32da193cbe710ffcead8b8 (patch)
tree7763a90b53f3c10dd3af4525ce3da103c0c068e8 /projects/SelfTest/TestMain.cpp
parent3e0c5018123e7e32b3c35f4169cbdca4bcb8f332 (diff)
downloadcatch3-6817bb099db44744cc32da193cbe710ffcead8b8.tar.gz
Fixed up xml reporter and rebased
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
-rw-r--r--projects/SelfTest/TestMain.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp
index 154a2994..4b60a4f5 100644
--- a/projects/SelfTest/TestMain.cpp
+++ b/projects/SelfTest/TestMain.cpp
@@ -374,6 +374,11 @@ TEST_CASE( "replaceInPlace", "" ) {
CHECK_FALSE( replaceInPlace( letters, "x", "z" ) );
CHECK( letters == letters );
}
+ SECTION( "escape '" ) {
+ std::string s = "didn't";
+ CHECK( replaceInPlace( s, "'", "|'" ) );
+ CHECK( s == "didn|'t" );
+ }
}
// !TBD: This will be folded into Text class