From a9fd5b3f14f927f94e7ce84b0f9b5e31b2f44d09 Mon Sep 17 00:00:00 2001
From: Phil Nash
Date: Thu, 14 Nov 2013 23:35:56 +0000
Subject: [PATCH 01/15] Removed cruft from VS projects
---
projects/VS2008/TestCatch/UpgradeLog.XML | 12 -
.../_UpgradeReport_Files/UpgradeReport.css | 207 ----------------
.../_UpgradeReport_Files/UpgradeReport.xslt | 232 ------------------
.../UpgradeReport_Minus.gif | Bin 69 -> 0 bytes
.../UpgradeReport_Plus.gif | Bin 71 -> 0 bytes
.../VS2010/TestCatch/TestCatch/ReadMe.txt | 33 ---
6 files changed, 484 deletions(-)
delete mode 100644 projects/VS2008/TestCatch/UpgradeLog.XML
delete mode 100644 projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.css
delete mode 100644 projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.xslt
delete mode 100644 projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport_Minus.gif
delete mode 100644 projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport_Plus.gif
delete mode 100644 projects/VS2010/TestCatch/TestCatch/ReadMe.txt
diff --git a/projects/VS2008/TestCatch/UpgradeLog.XML b/projects/VS2008/TestCatch/UpgradeLog.XML
deleted file mode 100644
index 991a3e5b..00000000
--- a/projects/VS2008/TestCatch/UpgradeLog.XML
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.css b/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.css
deleted file mode 100644
index fae98af0..00000000
--- a/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.css
+++ /dev/null
@@ -1,207 +0,0 @@
-BODY
-{
- BACKGROUND-COLOR: white;
- FONT-FAMILY: "Verdana", sans-serif;
- FONT-SIZE: 100%;
- MARGIN-LEFT: 0px;
- MARGIN-TOP: 0px
-}
-P
-{
- FONT-FAMILY: "Verdana", sans-serif;
- FONT-SIZE: 70%;
- LINE-HEIGHT: 12pt;
- MARGIN-BOTTOM: 0px;
- MARGIN-LEFT: 10px;
- MARGIN-TOP: 10px
-}
-.note
-{
- BACKGROUND-COLOR: #ffffff;
- COLOR: #336699;
- FONT-FAMILY: "Verdana", sans-serif;
- FONT-SIZE: 100%;
- MARGIN-BOTTOM: 0px;
- MARGIN-LEFT: 0px;
- MARGIN-TOP: 0px;
- PADDING-RIGHT: 10px
-}
-.infotable
-{
- BACKGROUND-COLOR: #f0f0e0;
- BORDER-BOTTOM: #ffffff 0px solid;
- BORDER-COLLAPSE: collapse;
- BORDER-LEFT: #ffffff 0px solid;
- BORDER-RIGHT: #ffffff 0px solid;
- BORDER-TOP: #ffffff 0px solid;
- FONT-SIZE: 70%;
- MARGIN-LEFT: 10px
-}
-.issuetable
-{
- BACKGROUND-COLOR: #ffffe8;
- BORDER-COLLAPSE: collapse;
- COLOR: #000000;
- FONT-SIZE: 100%;
- MARGIN-BOTTOM: 10px;
- MARGIN-LEFT: 13px;
- MARGIN-TOP: 0px
-}
-.issuetitle
-{
- BACKGROUND-COLOR: #ffffff;
- BORDER-BOTTOM: #dcdcdc 1px solid;
- BORDER-TOP: #dcdcdc 1px;
- COLOR: #003366;
- FONT-WEIGHT: normal
-}
-.header
-{
- BACKGROUND-COLOR: #cecf9c;
- BORDER-BOTTOM: #ffffff 1px solid;
- BORDER-LEFT: #ffffff 1px solid;
- BORDER-RIGHT: #ffffff 1px solid;
- BORDER-TOP: #ffffff 1px solid;
- COLOR: #000000;
- FONT-WEIGHT: bold
-}
-.issuehdr
-{
- BACKGROUND-COLOR: #E0EBF5;
- BORDER-BOTTOM: #dcdcdc 1px solid;
- BORDER-TOP: #dcdcdc 1px solid;
- COLOR: #000000;
- FONT-WEIGHT: normal
-}
-.issuenone
-{
- BACKGROUND-COLOR: #ffffff;
- BORDER-BOTTOM: 0px;
- BORDER-LEFT: 0px;
- BORDER-RIGHT: 0px;
- BORDER-TOP: 0px;
- COLOR: #000000;
- FONT-WEIGHT: normal
-}
-.content
-{
- BACKGROUND-COLOR: #e7e7ce;
- BORDER-BOTTOM: #ffffff 1px solid;
- BORDER-LEFT: #ffffff 1px solid;
- BORDER-RIGHT: #ffffff 1px solid;
- BORDER-TOP: #ffffff 1px solid;
- PADDING-LEFT: 3px
-}
-.issuecontent
-{
- BACKGROUND-COLOR: #ffffff;
- BORDER-BOTTOM: #dcdcdc 1px solid;
- BORDER-TOP: #dcdcdc 1px solid;
- PADDING-LEFT: 3px
-}
-A:link
-{
- COLOR: #cc6633;
- TEXT-DECORATION: underline
-}
-A:visited
-{
- COLOR: #cc6633;
-}
-A:active
-{
- COLOR: #cc6633;
-}
-A:hover
-{
- COLOR: #cc3300;
- TEXT-DECORATION: underline
-}
-H1
-{
- BACKGROUND-COLOR: #003366;
- BORDER-BOTTOM: #336699 6px solid;
- COLOR: #ffffff;
- FONT-SIZE: 130%;
- FONT-WEIGHT: normal;
- MARGIN: 0em 0em 0em -20px;
- PADDING-BOTTOM: 8px;
- PADDING-LEFT: 30px;
- PADDING-TOP: 16px
-}
-H2
-{
- COLOR: #000000;
- FONT-SIZE: 80%;
- FONT-WEIGHT: bold;
- MARGIN-BOTTOM: 3px;
- MARGIN-LEFT: 10px;
- MARGIN-TOP: 20px;
- PADDING-LEFT: 0px
-}
-H3
-{
- COLOR: #000000;
- FONT-SIZE: 80%;
- FONT-WEIGHT: bold;
- MARGIN-BOTTOM: -5px;
- MARGIN-LEFT: 10px;
- MARGIN-TOP: 20px
-}
-H4
-{
- COLOR: #000000;
- FONT-SIZE: 70%;
- FONT-WEIGHT: bold;
- MARGIN-BOTTOM: 0px;
- MARGIN-TOP: 15px;
- PADDING-BOTTOM: 0px
-}
-UL
-{
- COLOR: #000000;
- FONT-SIZE: 70%;
- LIST-STYLE: square;
- MARGIN-BOTTOM: 0pt;
- MARGIN-TOP: 0pt
-}
-OL
-{
- COLOR: #000000;
- FONT-SIZE: 70%;
- LIST-STYLE: square;
- MARGIN-BOTTOM: 0pt;
- MARGIN-TOP: 0pt
-}
-LI
-{
- LIST-STYLE: square;
- MARGIN-LEFT: 0px
-}
-.expandable
-{
- CURSOR: hand
-}
-.expanded
-{
- color: black
-}
-.collapsed
-{
- DISPLAY: none
-}
-.foot
-{
-BACKGROUND-COLOR: #ffffff;
-BORDER-BOTTOM: #cecf9c 1px solid;
-BORDER-TOP: #cecf9c 2px solid
-}
-.settings
-{
-MARGIN-LEFT: 25PX;
-}
-.help
-{
-TEXT-ALIGN: right;
-margin-right: 10px;
-}
diff --git a/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.xslt b/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.xslt
deleted file mode 100644
index 73c4e7af..00000000
--- a/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.xslt
+++ /dev/null
@@ -1,232 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- : |
-
-
-
-
-
-
-
-
- Conversion Report
-
-
-
-
-
-
-
- Conversion Report -
-
-
- Time of Conversion:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Conversion Settings
- |
-
-
-
-
-
-
-
diff --git a/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport_Minus.gif b/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport_Minus.gif
deleted file mode 100644
index 17751cb2fd5c284dfe984adc4c769982f73a0a66..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 69
zcmZ?wbhEHb23ky~TYXIqG7FYlP
diff --git a/projects/VS2010/TestCatch/TestCatch/ReadMe.txt b/projects/VS2010/TestCatch/TestCatch/ReadMe.txt
deleted file mode 100644
index 139e3319..00000000
--- a/projects/VS2010/TestCatch/TestCatch/ReadMe.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-========================================================================
- CONSOLE APPLICATION : TestCatch Project Overview
-========================================================================
-
-AppWizard has created this TestCatch application for you.
-
-This file contains a summary of what you will find in each of the files that
-make up your TestCatch application.
-
-
-TestCatch.vcproj
- This is the main project file for VC++ projects generated using an Application Wizard.
- It contains information about the version of Visual C++ that generated the file, and
- information about the platforms, configurations, and project features selected with the
- Application Wizard.
-
-TestCatch.cpp
- This is the main application source file.
-
-/////////////////////////////////////////////////////////////////////////////
-Other standard files:
-
-StdAfx.h, StdAfx.cpp
- These files are used to build a precompiled header (PCH) file
- named TestCatch.pch and a precompiled types file named StdAfx.obj.
-
-/////////////////////////////////////////////////////////////////////////////
-Other notes:
-
-AppWizard uses "TODO:" comments to indicate parts of the source code you
-should add to or customize.
-
-/////////////////////////////////////////////////////////////////////////////
From 337dc25ed78a98f3876b30bd8542735f536473c8 Mon Sep 17 00:00:00 2001
From: Phil Nash
Date: Tue, 19 Nov 2013 07:21:03 +0000
Subject: [PATCH 02/15] Converted all test case names to "modern" style
(freeform text + tags)
---
include/internal/catch_test_case_info.hpp | 2 +-
.../catch_test_case_registry_impl.hpp | 4 +-
projects/SelfTest/ApproxTests.cpp | 24 +-
.../Baselines/console.std.approved.txt | 112 ++-
.../Baselines/console.sw.approved.txt | 841 ++++--------------
.../Baselines/console.swa4.approved.txt | 24 +-
.../SelfTest/Baselines/junit.sw.approved.txt | 224 +++--
.../SelfTest/Baselines/xml.sw.approved.txt | 292 +++---
projects/SelfTest/ClassTests.cpp | 8 +-
projects/SelfTest/ConditionTests.cpp | 42 +-
projects/SelfTest/ExceptionTests.cpp | 24 +-
projects/SelfTest/GeneratorTests.cpp | 4 +-
projects/SelfTest/MessageTests.cpp | 31 +-
projects/SelfTest/MiscTests.cpp | 59 +-
projects/SelfTest/TestMain.cpp | 46 -
projects/SelfTest/TrickyTests.cpp | 64 +-
.../TestCatch/TestCatch/TestCatch.vcxproj | 3 -
17 files changed, 587 insertions(+), 1217 deletions(-)
diff --git a/include/internal/catch_test_case_info.hpp b/include/internal/catch_test_case_info.hpp
index 3a279602..59fc39f4 100644
--- a/include/internal/catch_test_case_info.hpp
+++ b/include/internal/catch_test_case_info.hpp
@@ -22,7 +22,7 @@ namespace Catch {
SourceLineInfo const& _lineInfo )
{
std::string desc = _descOrTags;
- bool isHidden( startsWith( _name, "./" ) );
+ bool isHidden( startsWith( _name, "./" ) ); // Legacy support
std::set tags;
TagExtracter( tags ).parse( desc );
if( tags.find( "hide" ) != tags.end() || tags.find( "." ) != tags.end() )
diff --git a/include/internal/catch_test_case_registry_impl.hpp b/include/internal/catch_test_case_registry_impl.hpp
index 41714bc8..af1ee29f 100644
--- a/include/internal/catch_test_case_registry_impl.hpp
+++ b/include/internal/catch_test_case_registry_impl.hpp
@@ -42,8 +42,8 @@ namespace Catch {
else {
TestCase const& prev = *m_functions.find( testCase );
std::cerr << "error: TEST_CASE( \"" << name << "\" ) already defined.\n"
- << "\tFirst seen at " << SourceLineInfo( prev.getTestCaseInfo().lineInfo ) << "\n"
- << "\tRedefined at " << SourceLineInfo( testCase.getTestCaseInfo().lineInfo ) << std::endl;
+ << "\tFirst seen at " << prev.getTestCaseInfo().lineInfo << "\n"
+ << "\tRedefined at " << testCase.getTestCaseInfo().lineInfo << std::endl;
exit(1);
}
}
diff --git a/projects/SelfTest/ApproxTests.cpp b/projects/SelfTest/ApproxTests.cpp
index acf96c99..1df76155 100644
--- a/projects/SelfTest/ApproxTests.cpp
+++ b/projects/SelfTest/ApproxTests.cpp
@@ -11,8 +11,8 @@
///////////////////////////////////////////////////////////////////////////////
TEST_CASE
(
- "./succeeding/Approx/simple",
- "Some simple comparisons between doubles"
+ "Some simple comparisons between doubles",
+ "[Approx]"
)
{
double d = 1.23;
@@ -29,8 +29,8 @@ TEST_CASE
///////////////////////////////////////////////////////////////////////////////
TEST_CASE
(
- "./succeeding/Approx/epsilon",
- "Approximate comparisons with different epsilons"
+ "Approximate comparisons with different epsilons",
+ "[Approx]"
)
{
double d = 1.23;
@@ -42,8 +42,8 @@ TEST_CASE
///////////////////////////////////////////////////////////////////////////////
TEST_CASE
(
- "./succeeding/Approx/float",
- "Approximate comparisons with floats"
+ "Approximate comparisons with floats",
+ "[Approx]"
)
{
REQUIRE( 1.23f == Approx( 1.23f ) );
@@ -53,8 +53,8 @@ TEST_CASE
///////////////////////////////////////////////////////////////////////////////
TEST_CASE
(
- "./succeeding/Approx/int",
- "Approximate comparisons with ints"
+ "Approximate comparisons with ints",
+ "[Approx]"
)
{
REQUIRE( 1 == Approx( 1 ) );
@@ -64,8 +64,8 @@ TEST_CASE
///////////////////////////////////////////////////////////////////////////////
TEST_CASE
(
- "./succeeding/Approx/mixed",
- "Approximate comparisons with mixed numeric types"
+ "Approximate comparisons with mixed numeric types",
+ "[Approx]"
)
{
const double dZero = 0;
@@ -82,8 +82,8 @@ TEST_CASE
///////////////////////////////////////////////////////////////////////////////
TEST_CASE
(
- "./succeeding/Approx/custom",
- "Use a custom approx"
+ "Use a custom approx",
+ "[Approx][custom]"
)
{
double d = 1.23;
diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt
index aaafd844..54bee3e5 100644
--- a/projects/SelfTest/Baselines/console.std.approved.txt
+++ b/projects/SelfTest/Baselines/console.std.approved.txt
@@ -4,7 +4,7 @@ CatchSelfTest is a host application.
Run with -? for options
-------------------------------------------------------------------------------
-./failing/TestClass/failingCase
+A METHOD_AS_TEST_CASE based test run that fails
-------------------------------------------------------------------------------
ClassTests.cpp:
...............................................................................
@@ -15,7 +15,7 @@ with expansion:
"hello" == "world"
-------------------------------------------------------------------------------
-./failing/Fixture/failingCase
+A TEST_CASE_METHOD based test run that fails
-------------------------------------------------------------------------------
ClassTests.cpp:
...............................................................................
@@ -26,7 +26,7 @@ with expansion:
1 == 2
-------------------------------------------------------------------------------
-./failing/conditions/equality
+Equality checks that should fail]
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -97,7 +97,7 @@ with expansion:
1.3 == Approx( 1.301 )
-------------------------------------------------------------------------------
-./failing/conditions/inequality
+Inequality checks that should fails
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -128,7 +128,7 @@ with expansion:
5 != 5
-------------------------------------------------------------------------------
-./failing/conditions/ordered
+Ordering comparison checks that should fail
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -229,7 +229,7 @@ with expansion:
"hello" <= "a"
-------------------------------------------------------------------------------
-./failing/conditions/not
+'Not' checks that should fail
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -269,7 +269,7 @@ with expansion:
!(1 == 1)
-------------------------------------------------------------------------------
-./failing/exceptions/explicit
+Expected exceptions that don't throw or unexpected exceptions fail the test
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -289,7 +289,7 @@ due to unexpected exception with message:
expected exception
-------------------------------------------------------------------------------
-./failing/exceptions/implicit
+When unchecked exceptions are thrown directly they are always failures
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -299,7 +299,7 @@ due to unexpected exception with message:
unexpected exception
-------------------------------------------------------------------------------
-./failing/exceptions/implicit/2
+An unchecked exception reports the line of the last assertion
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -310,7 +310,7 @@ due to unexpected exception with message:
unexpected exception
-------------------------------------------------------------------------------
-./failing/exceptions/implicit/3
+When unchecked exceptions are thrown from sections they are always failures
section name
-------------------------------------------------------------------------------
ExceptionTests.cpp:
@@ -321,7 +321,7 @@ due to unexpected exception with message:
unexpected exception
-------------------------------------------------------------------------------
-./failing/exceptions/implicit/4
+When unchecked exceptions are thrown from functions they are always failures
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -332,7 +332,7 @@ due to unexpected exception with message:
expected exception
-------------------------------------------------------------------------------
-./failing/exceptions/custom
+Unexpected custom exceptions can be translated
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -342,7 +342,7 @@ due to unexpected exception with message:
custom exception
-------------------------------------------------------------------------------
-./failing/exceptions/custom/nothrow
+Custom exceptions can be translated when testing for nothrow
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -353,7 +353,7 @@ due to unexpected exception with message:
custom exception - not std
-------------------------------------------------------------------------------
-./failing/exceptions/custom/throw
+Custom exceptions can be translated when testing for throwing as something else
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -364,7 +364,7 @@ due to unexpected exception with message:
custom exception - not std
-------------------------------------------------------------------------------
-./failing/exceptions/custom/double
+Unexpected exceptions can be translated
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -374,7 +374,7 @@ due to unexpected exception with message:
3.14
-------------------------------------------------------------------------------
-./succeeding/message
+INFO and WARN do not abort tests
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -384,7 +384,7 @@ warning:
this is a warning
-------------------------------------------------------------------------------
-./failing/message/info/1
+INFO gets logged on failure
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -398,7 +398,7 @@ with messages:
so should this
-------------------------------------------------------------------------------
-./mixed/message/info/2
+INFO gets logged on failure, even if captured before successful assertions
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -419,7 +419,7 @@ with message:
and this, but later
-------------------------------------------------------------------------------
-./failing/message/fail
+FAIL aborts the test
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -429,7 +429,7 @@ explicitly with message:
This is a failure
-------------------------------------------------------------------------------
-./failing/message/sections
+Output from all sections is reported
one
-------------------------------------------------------------------------------
MessageTests.cpp:
@@ -440,7 +440,7 @@ explicitly with message:
Message from section one
-------------------------------------------------------------------------------
-./failing/message/sections
+Output from all sections is reported
two
-------------------------------------------------------------------------------
MessageTests.cpp:
@@ -453,7 +453,7 @@ explicitly with message:
Message from section one
Message from section two
-------------------------------------------------------------------------------
-./mixed/message/scoped
+SCOPED_INFO is reset for each loop
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -477,7 +477,19 @@ explicitly with message:
Previous info should not be seen
-------------------------------------------------------------------------------
-./mixed/Misc/Sections/nested2
+sends information to INFO
+-------------------------------------------------------------------------------
+MessageTests.cpp:
+...............................................................................
+
+MessageTests.cpp:: FAILED:
+ REQUIRE( false )
+with messages:
+ hi
+ i := 7
+
+-------------------------------------------------------------------------------
+more nested SECTION tests
s1
s2
-------------------------------------------------------------------------------
@@ -490,7 +502,7 @@ with expansion:
1 == 2
-------------------------------------------------------------------------------
-./mixed/Misc/Sections/loops
+looped SECTION tests
s1
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -502,7 +514,7 @@ with expansion:
0 > 1
-------------------------------------------------------------------------------
-./mixed/Misc/loops
+looped tests
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -552,19 +564,7 @@ with message:
Some information
An error
-------------------------------------------------------------------------------
-./failing/info
--------------------------------------------------------------------------------
-MiscTests.cpp:
-...............................................................................
-
-MiscTests.cpp:: FAILED:
- REQUIRE( false )
-with messages:
- hi
- i := 7
-
--------------------------------------------------------------------------------
-./failing/checkedif
+checkedIf, failing
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -580,7 +580,7 @@ with expansion:
false
-------------------------------------------------------------------------------
-./failing/checkedelse
+checkedElse, failing
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -596,7 +596,7 @@ with expansion:
false
-------------------------------------------------------------------------------
-./manual/onechar
+send a single char to INFO
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -607,7 +607,7 @@ with message:
3
-------------------------------------------------------------------------------
-./failing/matchers/Contains
+Contains string matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -618,7 +618,7 @@ with expansion:
"this string contains 'abc' as a substring" contains: "not there"
-------------------------------------------------------------------------------
-./failing/matchers/StartsWith
+StartsWith string matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -629,7 +629,7 @@ with expansion:
"this string contains 'abc' as a substring" starts with: "string"
-------------------------------------------------------------------------------
-./failing/matchers/EndsWith
+EndsWith string matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -640,7 +640,7 @@ with expansion:
"this string contains 'abc' as a substring" ends with: "this"
-------------------------------------------------------------------------------
-./failing/matchers/Equals
+Equals string matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -661,7 +661,7 @@ warning:
This one ran
-------------------------------------------------------------------------------
-./failing/CatchSectionInfiniteLoop
+A couple of nested sections followed by a failure
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -671,7 +671,7 @@ explicitly with message:
to infinity and beyond
-------------------------------------------------------------------------------
-./failing/CatchSectionInfiniteLoop
+A couple of nested sections followed by a failure
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -681,7 +681,7 @@ explicitly with message:
to infinity and beyond
-------------------------------------------------------------------------------
-./failing/CatchSectionInfiniteLoop
+A couple of nested sections followed by a failure
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -690,18 +690,10 @@ MiscTests.cpp:: FAILED:
explicitly with message:
to infinity and beyond
-Message from section one
-Message from section two
-Some information
-An error
-Message from section one
-Message from section two
-Some information
-An error
hello
hello
-------------------------------------------------------------------------------
-./inprogress/failing/Tricky/trailing expression
+Where the is more to the expression after the RHS[failing]
-------------------------------------------------------------------------------
TrickyTests.cpp:
...............................................................................
@@ -712,7 +704,7 @@ warning:
error
-------------------------------------------------------------------------------
-./inprogress/failing/Tricky/compound lhs
+Where the LHS is not a simple value[failing]
-------------------------------------------------------------------------------
TrickyTests.cpp:
...............................................................................
@@ -723,7 +715,7 @@ warning:
error
-------------------------------------------------------------------------------
-./failing/Tricky/non streamable type
+A failing expression with a non streamable type is still captured[failing]
-------------------------------------------------------------------------------
TrickyTests.cpp:
...............................................................................
@@ -739,7 +731,7 @@ with expansion:
{?} == {?}
-------------------------------------------------------------------------------
-./failing/string literals
+string literals of different sizes can be compared[failing]
-------------------------------------------------------------------------------
TrickyTests.cpp:
...............................................................................
@@ -750,5 +742,5 @@ with expansion:
"first" == "second"
===============================================================================
-122 test cases - 35 failed (753 assertions - 90 failed)
+120 test cases - 35 failed (673 assertions - 90 failed)
diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt
index c85230c3..7c39bd07 100644
--- a/projects/SelfTest/Baselines/console.sw.approved.txt
+++ b/projects/SelfTest/Baselines/console.sw.approved.txt
@@ -4,7 +4,7 @@ CatchSelfTest is a host application.
Run with -? for options
-------------------------------------------------------------------------------
-./succeeding/Approx/simple
+Some simple comparisons between doubles
-------------------------------------------------------------------------------
ApproxTests.cpp:
...............................................................................
@@ -46,7 +46,7 @@ with expansion:
Approx( 1.23 ) != 1.24
-------------------------------------------------------------------------------
-./succeeding/Approx/epsilon
+Approximate comparisons with different epsilons
-------------------------------------------------------------------------------
ApproxTests.cpp:
...............................................................................
@@ -64,7 +64,7 @@ with expansion:
1.23 == Approx( 1.231 )
-------------------------------------------------------------------------------
-./succeeding/Approx/float
+Approximate comparisons with floats
-------------------------------------------------------------------------------
ApproxTests.cpp:
...............................................................................
@@ -82,7 +82,7 @@ with expansion:
0 == Approx( 0 )
-------------------------------------------------------------------------------
-./succeeding/Approx/int
+Approximate comparisons with ints
-------------------------------------------------------------------------------
ApproxTests.cpp:
...............................................................................
@@ -96,7 +96,7 @@ PASSED:
REQUIRE( 0 == Approx( 0 ) )
-------------------------------------------------------------------------------
-./succeeding/Approx/mixed
+Approximate comparisons with mixed numeric types
-------------------------------------------------------------------------------
ApproxTests.cpp:
...............................................................................
@@ -132,7 +132,7 @@ with expansion:
1.234 == Approx( 1.234 )
-------------------------------------------------------------------------------
-./succeeding/Approx/custom
+Use a custom approx
-------------------------------------------------------------------------------
ApproxTests.cpp:
...............................................................................
@@ -204,7 +204,7 @@ with expansion:
3.1428571429 != Approx( 3.141 )
-------------------------------------------------------------------------------
-./succeeding/TestClass/succeedingCase
+A METHOD_AS_TEST_CASE based test run that succeeds
-------------------------------------------------------------------------------
ClassTests.cpp:
...............................................................................
@@ -216,7 +216,7 @@ with expansion:
"hello" == "hello"
-------------------------------------------------------------------------------
-./failing/TestClass/failingCase
+A METHOD_AS_TEST_CASE based test run that fails
-------------------------------------------------------------------------------
ClassTests.cpp:
...............................................................................
@@ -227,7 +227,7 @@ with expansion:
"hello" == "world"
-------------------------------------------------------------------------------
-./succeeding/Fixture/succeedingCase
+A TEST_CASE_METHOD based test run that succeeds
-------------------------------------------------------------------------------
ClassTests.cpp:
...............................................................................
@@ -239,7 +239,7 @@ with expansion:
1 == 1
-------------------------------------------------------------------------------
-./failing/Fixture/failingCase
+A TEST_CASE_METHOD based test run that fails
-------------------------------------------------------------------------------
ClassTests.cpp:
...............................................................................
@@ -250,7 +250,7 @@ with expansion:
1 == 2
-------------------------------------------------------------------------------
-./succeeding/conditions/equality
+Equality checks that should succeed
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -298,7 +298,7 @@ with expansion:
1.3 == Approx( 1.3 )
-------------------------------------------------------------------------------
-./failing/conditions/equality
+Equality checks that should fail]
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -369,7 +369,7 @@ with expansion:
1.3 == Approx( 1.301 )
-------------------------------------------------------------------------------
-./succeeding/conditions/inequality
+Inequality checks that should succeed
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -441,7 +441,7 @@ with expansion:
5 != 6
-------------------------------------------------------------------------------
-./failing/conditions/inequality
+Inequality checks that should fails
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -472,7 +472,7 @@ with expansion:
5 != 5
-------------------------------------------------------------------------------
-./succeeding/conditions/ordered
+Ordering comparison checks that should succeed
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -580,7 +580,7 @@ with expansion:
"hello" > "a"
-------------------------------------------------------------------------------
-./failing/conditions/ordered
+Ordering comparison checks that should fail
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -681,7 +681,7 @@ with expansion:
"hello" <= "a"
-------------------------------------------------------------------------------
-./succeeding/conditions/int literals
+Comparisons with int literals don't warn when mixing signed/ unsigned
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -765,7 +765,7 @@ with expansion:
0x > 4
-------------------------------------------------------------------------------
-./succeeding/conditions//long_to_unsigned_x
+comparisons between int variables
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -795,7 +795,7 @@ with expansion:
1 == 1
-------------------------------------------------------------------------------
-./succeeding/conditions/const ints to int literal
+comparisons between const int variables
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -825,7 +825,8 @@ with expansion:
1 == 1
-------------------------------------------------------------------------------
-./succeeding/conditions/negative ints
+Comparisons between unsigned ints and negative signed ints match c++ standard
+behaviour
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -867,7 +868,7 @@ with expansion:
-2147483648 > 2
-------------------------------------------------------------------------------
-./succeeding/conditions/computed ints
+Comparisons between ints where one side is computed
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -879,7 +880,7 @@ with expansion:
54 == 54
-------------------------------------------------------------------------------
-./succeeding/conditions/ptr
+Pointers can be compared to null
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -933,7 +934,7 @@ with expansion:
0 != 0x
-------------------------------------------------------------------------------
-./succeeding/conditions/not
+'Not' checks that should succeed
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -981,7 +982,7 @@ with expansion:
!(1 == 2)
-------------------------------------------------------------------------------
-./failing/conditions/not
+'Not' checks that should fail
-------------------------------------------------------------------------------
ConditionTests.cpp:
...............................................................................
@@ -1021,7 +1022,7 @@ with expansion:
!(1 == 1)
-------------------------------------------------------------------------------
-./succeeding/exceptions/explicit
+When checked exceptions are thrown they can be expected or unexpected
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1039,7 +1040,7 @@ PASSED:
REQUIRE_THROWS( thisThrows() )
-------------------------------------------------------------------------------
-./failing/exceptions/explicit
+Expected exceptions that don't throw or unexpected exceptions fail the test
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1059,7 +1060,7 @@ due to unexpected exception with message:
expected exception
-------------------------------------------------------------------------------
-./failing/exceptions/implicit
+When unchecked exceptions are thrown directly they are always failures
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1069,7 +1070,7 @@ due to unexpected exception with message:
unexpected exception
-------------------------------------------------------------------------------
-./failing/exceptions/implicit/2
+An unchecked exception reports the line of the last assertion
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1084,7 +1085,7 @@ due to unexpected exception with message:
unexpected exception
-------------------------------------------------------------------------------
-./failing/exceptions/implicit/3
+When unchecked exceptions are thrown from sections they are always failures
section name
-------------------------------------------------------------------------------
ExceptionTests.cpp:
@@ -1095,7 +1096,7 @@ due to unexpected exception with message:
unexpected exception
-------------------------------------------------------------------------------
-./failing/exceptions/implicit/4
+When unchecked exceptions are thrown from functions they are always failures
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1106,16 +1107,16 @@ due to unexpected exception with message:
expected exception
-------------------------------------------------------------------------------
-./succeeding/exceptions/implicit
+When unchecked exceptions are thrown, but caught, they do not affect the test
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
-No assertions in test case './succeeding/exceptions/implicit'
+No assertions in test case 'When unchecked exceptions are thrown, but caught, they do not affect the test'
-------------------------------------------------------------------------------
-./failing/exceptions/custom
+Unexpected custom exceptions can be translated
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1125,7 +1126,7 @@ due to unexpected exception with message:
custom exception
-------------------------------------------------------------------------------
-./failing/exceptions/custom/nothrow
+Custom exceptions can be translated when testing for nothrow
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1136,7 +1137,7 @@ due to unexpected exception with message:
custom exception - not std
-------------------------------------------------------------------------------
-./failing/exceptions/custom/throw
+Custom exceptions can be translated when testing for throwing as something else
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1147,7 +1148,7 @@ due to unexpected exception with message:
custom exception - not std
-------------------------------------------------------------------------------
-./failing/exceptions/custom/double
+Unexpected exceptions can be translated
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1157,7 +1158,7 @@ due to unexpected exception with message:
3.14
-------------------------------------------------------------------------------
-./succeeding/exceptions/notimplemented
+NotImplemented exception
-------------------------------------------------------------------------------
ExceptionTests.cpp:
...............................................................................
@@ -1167,7 +1168,7 @@ PASSED:
REQUIRE_THROWS( thisFunctionNotImplemented( 7 ) )
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1185,7 +1186,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1203,7 +1204,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1221,7 +1222,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1239,7 +1240,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1257,7 +1258,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1275,7 +1276,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1293,7 +1294,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1311,7 +1312,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1329,7 +1330,7 @@ with expansion:
200 == 200
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1347,7 +1348,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1365,7 +1366,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1383,7 +1384,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1401,7 +1402,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1419,7 +1420,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1437,7 +1438,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1455,7 +1456,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1473,7 +1474,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1491,7 +1492,7 @@ with expansion:
202 == 202
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1509,7 +1510,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1527,7 +1528,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1545,7 +1546,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1563,7 +1564,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1581,7 +1582,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1599,7 +1600,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1617,7 +1618,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1635,7 +1636,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1653,7 +1654,7 @@ with expansion:
204 == 204
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1671,7 +1672,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1689,7 +1690,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1707,7 +1708,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1725,7 +1726,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1743,7 +1744,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1761,7 +1762,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1779,7 +1780,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1797,7 +1798,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1815,7 +1816,7 @@ with expansion:
206 == 206
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1833,7 +1834,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1851,7 +1852,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1869,7 +1870,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1887,7 +1888,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1905,7 +1906,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1923,7 +1924,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1941,7 +1942,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1959,7 +1960,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1977,7 +1978,7 @@ with expansion:
208 == 208
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -1995,7 +1996,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2013,7 +2014,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2031,7 +2032,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2049,7 +2050,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2067,7 +2068,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2085,7 +2086,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2103,7 +2104,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2121,7 +2122,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2139,7 +2140,7 @@ with expansion:
210 == 210
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2157,7 +2158,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2175,7 +2176,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2193,7 +2194,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2211,7 +2212,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2229,7 +2230,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2247,7 +2248,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2265,7 +2266,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2283,7 +2284,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2301,7 +2302,7 @@ with expansion:
212 == 212
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2319,7 +2320,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2337,7 +2338,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2355,7 +2356,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2373,7 +2374,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2391,7 +2392,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2409,7 +2410,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2427,7 +2428,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2445,7 +2446,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/1
+Generators over two ranges
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2463,7 +2464,7 @@ with expansion:
214 == 214
-------------------------------------------------------------------------------
-./succeeding/generators/2
+Generator over a range of pairs
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2475,7 +2476,7 @@ with expansion:
0 == 0
-------------------------------------------------------------------------------
-./succeeding/generators/2
+Generator over a range of pairs
-------------------------------------------------------------------------------
GeneratorTests.cpp:
...............................................................................
@@ -2487,7 +2488,7 @@ with expansion:
2 == 2
-------------------------------------------------------------------------------
-./succeeding/message
+INFO and WARN do not abort tests
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -2498,10 +2499,10 @@ warning:
this is a warning
-No assertions in test case './succeeding/message'
+No assertions in test case 'INFO and WARN do not abort tests'
-------------------------------------------------------------------------------
-./succeeding/succeed
+SUCCEED counts as a test pass
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -2512,7 +2513,7 @@ with message:
this is a success
-------------------------------------------------------------------------------
-./failing/message/info/1
+INFO gets logged on failure
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -2526,7 +2527,7 @@ with messages:
so should this
-------------------------------------------------------------------------------
-./mixed/message/info/2
+INFO gets logged on failure, even if captured before successful assertions
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -2562,7 +2563,7 @@ with message:
but not this
-------------------------------------------------------------------------------
-./failing/message/fail
+FAIL aborts the test
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -2572,7 +2573,7 @@ explicitly with message:
This is a failure
-------------------------------------------------------------------------------
-./failing/message/sections
+Output from all sections is reported
one
-------------------------------------------------------------------------------
MessageTests.cpp:
@@ -2583,7 +2584,7 @@ explicitly with message:
Message from section one
-------------------------------------------------------------------------------
-./failing/message/sections
+Output from all sections is reported
two
-------------------------------------------------------------------------------
MessageTests.cpp:
@@ -2595,7 +2596,7 @@ explicitly with message:
Message from section one
-------------------------------------------------------------------------------
-./succeeding/message/sections/stdout
+Standard output from all sections is reported
one
-------------------------------------------------------------------------------
MessageTests.cpp:
@@ -2606,7 +2607,7 @@ No assertions in section 'one'
Message from section two
-------------------------------------------------------------------------------
-./succeeding/message/sections/stdout
+Standard output from all sections is reported
two
-------------------------------------------------------------------------------
MessageTests.cpp:
@@ -2616,7 +2617,7 @@ MessageTests.cpp:
No assertions in section 'two'
-------------------------------------------------------------------------------
-./mixed/message/scoped
+SCOPED_INFO is reset for each loop
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -2720,7 +2721,7 @@ with messages:
i := 10
-------------------------------------------------------------------------------
-./succeeding/nofail
+The NO_FAIL macro reports a failure but does not fail the test
-------------------------------------------------------------------------------
MessageTests.cpp:
...............................................................................
@@ -2730,7 +2731,7 @@ FAILED - but was ok:
CHECK_NOFAIL( 1 == 2 )
-No assertions in test case './succeeding/nofail'
+No assertions in test case 'The NO_FAIL macro reports a failure but does not fail the test'
-------------------------------------------------------------------------------
just info
@@ -2752,7 +2753,19 @@ explicitly with message:
Previous info should not be seen
-------------------------------------------------------------------------------
-./succeeding/Misc/Sections
+sends information to INFO
+-------------------------------------------------------------------------------
+MessageTests.cpp:
+...............................................................................
+
+MessageTests.cpp:: FAILED:
+ REQUIRE( false )
+with messages:
+ hi
+ i := 7
+
+-------------------------------------------------------------------------------
+random SECTION tests
s1
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -2771,7 +2784,7 @@ with expansion:
2 != 1
-------------------------------------------------------------------------------
-./succeeding/Misc/Sections
+random SECTION tests
s2
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -2784,7 +2797,7 @@ with expansion:
1 != 2
-------------------------------------------------------------------------------
-./succeeding/Misc/Sections/nested
+nested SECTION tests
s1
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -2803,7 +2816,7 @@ with expansion:
2 != 1
-------------------------------------------------------------------------------
-./succeeding/Misc/Sections/nested
+nested SECTION tests
s1
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -2822,7 +2835,7 @@ with expansion:
2 != 1
-------------------------------------------------------------------------------
-./succeeding/Misc/Sections/nested
+nested SECTION tests
s1
s2
-------------------------------------------------------------------------------
@@ -2836,7 +2849,7 @@ with expansion:
1 != 2
-------------------------------------------------------------------------------
-./mixed/Misc/Sections/nested2
+more nested SECTION tests
s1
s2
-------------------------------------------------------------------------------
@@ -2849,7 +2862,7 @@ with expansion:
1 == 2
-------------------------------------------------------------------------------
-./mixed/Misc/Sections/nested2
+more nested SECTION tests
s1
s3
-------------------------------------------------------------------------------
@@ -2863,7 +2876,7 @@ with expansion:
1 != 2
-------------------------------------------------------------------------------
-./mixed/Misc/Sections/nested2
+more nested SECTION tests
s1
s4
-------------------------------------------------------------------------------
@@ -2877,7 +2890,7 @@ with expansion:
1 < 2
-------------------------------------------------------------------------------
-./Sections/nested/a/b
+even more nested SECTION tests
c
d (leaf)
-------------------------------------------------------------------------------
@@ -2888,7 +2901,7 @@ MiscTests.cpp:
No assertions in section 'd (leaf)'
-------------------------------------------------------------------------------
-./Sections/nested/a/b
+even more nested SECTION tests
c
e (leaf)
-------------------------------------------------------------------------------
@@ -2899,7 +2912,7 @@ MiscTests.cpp:
No assertions in section 'e (leaf)'
-------------------------------------------------------------------------------
-./Sections/nested/a/b
+even more nested SECTION tests
f (leaf)
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -2909,7 +2922,7 @@ MiscTests.cpp:
No assertions in section 'f (leaf)'
-------------------------------------------------------------------------------
-./mixed/Misc/Sections/loops
+looped SECTION tests
s1
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -2921,7 +2934,7 @@ with expansion:
0 > 1
-------------------------------------------------------------------------------
-./mixed/Misc/loops
+looped tests
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -2987,16 +3000,16 @@ with message:
Some information
An error
-------------------------------------------------------------------------------
-./succeeding/Misc/stdout,stderr
+Sends stuff to stdout and stderr
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
-No assertions in test case './succeeding/Misc/stdout,stderr'
+No assertions in test case 'Sends stuff to stdout and stderr'
-------------------------------------------------------------------------------
-./succeeding/Misc/null strings
+null strings
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3014,19 +3027,7 @@ with expansion:
{null string} == {null string}
-------------------------------------------------------------------------------
-./failing/info
--------------------------------------------------------------------------------
-MiscTests.cpp:
-...............................................................................
-
-MiscTests.cpp:: FAILED:
- REQUIRE( false )
-with messages:
- hi
- i := 7
-
--------------------------------------------------------------------------------
-./succeeding/checkedif
+checkedIf
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3044,7 +3045,7 @@ with expansion:
true
-------------------------------------------------------------------------------
-./failing/checkedif
+checkedIf, failing
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3060,7 +3061,7 @@ with expansion:
false
-------------------------------------------------------------------------------
-./succeeding/checkedelse
+checkedElse
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3078,7 +3079,7 @@ with expansion:
true
-------------------------------------------------------------------------------
-./failing/checkedelse
+checkedElse, failing
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3094,7 +3095,7 @@ with expansion:
false
-------------------------------------------------------------------------------
-./misc/xmlentitycheck
+xmlentitycheck
embedded xml
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -3104,7 +3105,7 @@ MiscTests.cpp:
No assertions in section 'embedded xml'
-------------------------------------------------------------------------------
-./misc/xmlentitycheck
+xmlentitycheck
encoded chars
-------------------------------------------------------------------------------
MiscTests.cpp:
@@ -3114,7 +3115,7 @@ MiscTests.cpp:
No assertions in section 'encoded chars'
-------------------------------------------------------------------------------
-./manual/onechar
+send a single char to INFO
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3125,7 +3126,7 @@ with message:
3
-------------------------------------------------------------------------------
-./succeeding/atomic if
+atomic if
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3137,7 +3138,7 @@ with expansion:
0 == 0
-------------------------------------------------------------------------------
-./succeeding/matchers
+String matchers
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3167,7 +3168,7 @@ with expansion:
"this string contains 'abc' as a substring" ends with: "substring"
-------------------------------------------------------------------------------
-./failing/matchers/Contains
+Contains string matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3178,7 +3179,7 @@ with expansion:
"this string contains 'abc' as a substring" contains: "not there"
-------------------------------------------------------------------------------
-./failing/matchers/StartsWith
+StartsWith string matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3189,7 +3190,7 @@ with expansion:
"this string contains 'abc' as a substring" starts with: "string"
-------------------------------------------------------------------------------
-./failing/matchers/EndsWith
+EndsWith string matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3200,7 +3201,7 @@ with expansion:
"this string contains 'abc' as a substring" ends with: "this"
-------------------------------------------------------------------------------
-./failing/matchers/Equals
+Equals string matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3211,7 +3212,7 @@ with expansion:
"this string contains 'abc' as a substring" equals: "something else"
-------------------------------------------------------------------------------
-string
+Equals string matcher, with NULL
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3223,7 +3224,7 @@ with expansion:
"" equals: ""
-------------------------------------------------------------------------------
-./succeeding/matchers/AllOf
+AllOf matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3236,7 +3237,7 @@ with expansion:
contains: "abc" )
-------------------------------------------------------------------------------
-./succeeding/matchers/AnyOf
+AnyOf matcher
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3256,7 +3257,7 @@ with expansion:
contains: "string" )
-------------------------------------------------------------------------------
-./succeeding/matchers/Equals
+Equals
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3305,13 +3306,13 @@ with expansion:
0x == 3628800
-------------------------------------------------------------------------------
-empty
+An empty test with no assertions
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
-No assertions in test case 'empty'
+No assertions in test case 'An empty test with no assertions'
-------------------------------------------------------------------------------
Nice descriptive name
@@ -3562,7 +3563,7 @@ with expansion:
5 >= 5
-------------------------------------------------------------------------------
-./failing/CatchSectionInfiniteLoop
+A couple of nested sections followed by a failure
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3572,7 +3573,7 @@ explicitly with message:
to infinity and beyond
-------------------------------------------------------------------------------
-./failing/CatchSectionInfiniteLoop
+A couple of nested sections followed by a failure
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3582,7 +3583,7 @@ explicitly with message:
to infinity and beyond
-------------------------------------------------------------------------------
-./failing/CatchSectionInfiniteLoop
+A couple of nested sections followed by a failure
Outer
Inner
-------------------------------------------------------------------------------
@@ -3595,7 +3596,7 @@ with message:
that's not flying - that's failing in style
-------------------------------------------------------------------------------
-./failing/CatchSectionInfiniteLoop
+A couple of nested sections followed by a failure
-------------------------------------------------------------------------------
MiscTests.cpp:
...............................................................................
@@ -3604,458 +3605,6 @@ MiscTests.cpp:: FAILED:
explicitly with message:
to infinity and beyond
--------------------------------------------------------------------------------
-selftest/main
- selftest/expected result
- selftest/expected result/failing tests
--------------------------------------------------------------------------------
-TestMain.cpp:
-...............................................................................
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests failed, as expected
-
--------------------------------------------------------------------------------
-selftest/main
- selftest/expected result
- selftest/expected result/succeeding tests
--------------------------------------------------------------------------------
-TestMain.cpp:
-...............................................................................
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp::
-PASSED:
-with message:
- Tests passed, as expected
-
-catch_self_test.hpp: