diff options
| author | Phil Nash | 2014-12-30 18:24:31 +0000 |
|---|---|---|
| committer | Phil Nash | 2014-12-30 18:24:31 +0000 |
| commit | 6817bb099db44744cc32da193cbe710ffcead8b8 (patch) | |
| tree | 7763a90b53f3c10dd3af4525ce3da103c0c068e8 /projects/SelfTest/TestMain.cpp | |
| parent | 3e0c5018123e7e32b3c35f4169cbdca4bcb8f332 (diff) | |
| download | catch3-6817bb099db44744cc32da193cbe710ffcead8b8.tar.gz | |
Fixed up xml reporter and rebased
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
| -rw-r--r-- | projects/SelfTest/TestMain.cpp | 5 |
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 |