mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 13:19:55 +01:00
Modify generator tracking to allow GENERATEs between SECTIONs
This means that code such as ```cpp TEST_CASE() { SECTION("first") { SUCCEED(); } auto _ = GENERATE(1, 2); SECTION("second") { SUCCEED(); } } ``` will run and report 3 assertions, 1 from section "first" and 2 from section "second". This also applies for greater and potentially more confusing nesting, but fundamentally it is up to the user to avoid overly complex and confusing nestings, just as with `SECTION`s. The old behaviour of `GENERATE` as first thing in a `TEST_CASE`, `GENERATE` not followed by a `SECTION`, etc etc should be unchanged. Closes #1938
This commit is contained in:
parent
89fe35d515
commit
b79a83e4aa
@ -50,7 +50,7 @@ namespace Catch {
|
|||||||
currentTracker.addChild( tracker );
|
currentTracker.addChild( tracker );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !ctx.completedCycle() && !tracker->isComplete() ) {
|
if( !tracker->isComplete() ) {
|
||||||
tracker->open();
|
tracker->open();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,8 +64,28 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
void close() override {
|
void close() override {
|
||||||
TrackerBase::close();
|
TrackerBase::close();
|
||||||
// Generator interface only finds out if it has another item on atual move
|
// If a generator has a child (it is followed by a section)
|
||||||
if (m_runState == CompletedSuccessfully && m_generator->next()) {
|
// and none of its children have started, then we must wait
|
||||||
|
// until later to start consuming its values.
|
||||||
|
// This catches cases where `GENERATE` is placed between two
|
||||||
|
// `SECTION`s.
|
||||||
|
// **The check for m_children.empty cannot be removed**.
|
||||||
|
// doing so would break `GENERATE` _not_ followed by `SECTION`s.
|
||||||
|
const bool should_wait_for_child =
|
||||||
|
!m_children.empty() &&
|
||||||
|
std::find_if( m_children.begin(),
|
||||||
|
m_children.end(),
|
||||||
|
[]( TestCaseTracking::ITrackerPtr tracker ) {
|
||||||
|
return tracker->hasStarted();
|
||||||
|
} ) == m_children.end();
|
||||||
|
|
||||||
|
// This check is a bit tricky, because m_generator->next()
|
||||||
|
// has a side-effect, where it consumes generator's current
|
||||||
|
// value, but we do not want to invoke the side-effect if
|
||||||
|
// this generator is still waiting for any child to start.
|
||||||
|
if ( should_wait_for_child ||
|
||||||
|
( m_runState == CompletedSuccessfully &&
|
||||||
|
m_generator->next() ) ) {
|
||||||
m_children.clear();
|
m_children.clear();
|
||||||
m_runState = Executing;
|
m_runState = Executing;
|
||||||
}
|
}
|
||||||
@ -206,7 +226,6 @@ namespace Catch {
|
|||||||
using namespace Generators;
|
using namespace Generators;
|
||||||
GeneratorTracker& tracker = GeneratorTracker::acquire(m_trackerContext,
|
GeneratorTracker& tracker = GeneratorTracker::acquire(m_trackerContext,
|
||||||
TestCaseTracking::NameAndLocation( static_cast<std::string>(generatorName), lineInfo ) );
|
TestCaseTracking::NameAndLocation( static_cast<std::string>(generatorName), lineInfo ) );
|
||||||
assert( tracker.isOpen() );
|
|
||||||
m_lastAssertionInfo.lineInfo = lineInfo;
|
m_lastAssertionInfo.lineInfo = lineInfo;
|
||||||
return tracker;
|
return tracker;
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,8 @@ namespace TestCaseTracking {
|
|||||||
bool SectionTracker::isComplete() const {
|
bool SectionTracker::isComplete() const {
|
||||||
bool complete = true;
|
bool complete = true;
|
||||||
|
|
||||||
if ((m_filters.empty() || m_filters[0] == "")
|
if (m_filters.empty()
|
||||||
|
|| m_filters[0] == ""
|
||||||
|| std::find(m_filters.begin(), m_filters.end(), m_trimmed_name) != m_filters.end()) {
|
|| std::find(m_filters.begin(), m_filters.end(), m_trimmed_name) != m_filters.end()) {
|
||||||
complete = TrackerBase::isComplete();
|
complete = TrackerBase::isComplete();
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,7 @@ namespace TestCaseTracking {
|
|||||||
virtual bool isSuccessfullyCompleted() const = 0;
|
virtual bool isSuccessfullyCompleted() const = 0;
|
||||||
virtual bool isOpen() const = 0; // Started but not complete
|
virtual bool isOpen() const = 0; // Started but not complete
|
||||||
virtual bool hasChildren() const = 0;
|
virtual bool hasChildren() const = 0;
|
||||||
|
virtual bool hasStarted() const = 0;
|
||||||
|
|
||||||
virtual ITracker& parent() = 0;
|
virtual ITracker& parent() = 0;
|
||||||
|
|
||||||
@ -121,7 +122,9 @@ namespace TestCaseTracking {
|
|||||||
bool isSuccessfullyCompleted() const override;
|
bool isSuccessfullyCompleted() const override;
|
||||||
bool isOpen() const override;
|
bool isOpen() const override;
|
||||||
bool hasChildren() const override;
|
bool hasChildren() const override;
|
||||||
|
bool hasStarted() const override {
|
||||||
|
return m_runState != NotStarted;
|
||||||
|
}
|
||||||
|
|
||||||
void addChild( ITrackerPtr const& child ) override;
|
void addChild( ITrackerPtr const& child ) override;
|
||||||
|
|
||||||
|
@ -36,6 +36,48 @@ Generators.tests.cpp:<line number>: passed: i != j for: 1 != 3
|
|||||||
Generators.tests.cpp:<line number>: passed: i != j for: 1 != 4
|
Generators.tests.cpp:<line number>: passed: i != j for: 1 != 4
|
||||||
Generators.tests.cpp:<line number>: passed: i != j for: 2 != 3
|
Generators.tests.cpp:<line number>: passed: i != j for: 2 != 3
|
||||||
Generators.tests.cpp:<line number>: passed: i != j for: 2 != 4
|
Generators.tests.cpp:<line number>: passed: i != j for: 2 != 4
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 1 message: 'A'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 3
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 3
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 3
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 1 message: 'A'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 3 messages: 'i := 1' and 'j := 3' and 'k := 5'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 1 message: 'B'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 3 messages: 'i := 1' and 'j := 3' and 'k := 6'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 1 message: 'B'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 3 messages: 'i := 1' and 'j := 4' and 'k := 5'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 3 messages: 'i := 1' and 'j := 4' and 'k := 6'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 1 message: 'A'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 3 messages: 'i := 2' and 'j := 3' and 'k := 5'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 1 message: 'B'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 3 messages: 'i := 2' and 'j := 3' and 'k := 6'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 1 message: 'B'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 3 messages: 'i := 2' and 'j := 4' and 'k := 5'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: with 3 messages: 'i := 2' and 'j := 4' and 'k := 6'
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 3
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 3
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 3
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 1
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 3
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 2
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: m for: 3
|
||||||
|
PartTracker.tests.cpp:<line number>: passed: n for: 3
|
||||||
Misc.tests.cpp:<line number>: passed:
|
Misc.tests.cpp:<line number>: passed:
|
||||||
Misc.tests.cpp:<line number>: passed:
|
Misc.tests.cpp:<line number>: passed:
|
||||||
Misc.tests.cpp:<line number>: passed:
|
Misc.tests.cpp:<line number>: passed:
|
||||||
|
@ -1380,6 +1380,6 @@ due to unexpected exception with message:
|
|||||||
Why would you throw a std::string?
|
Why would you throw a std::string?
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
test cases: 316 | 242 passed | 70 failed | 4 failed as expected
|
test cases: 321 | 247 passed | 70 failed | 4 failed as expected
|
||||||
assertions: 1716 | 1564 passed | 131 failed | 21 failed as expected
|
assertions: 1758 | 1606 passed | 131 failed | 21 failed as expected
|
||||||
|
|
||||||
|
@ -309,6 +309,424 @@ Generators.tests.cpp:<line number>: PASSED:
|
|||||||
with expansion:
|
with expansion:
|
||||||
2 != 4
|
2 != 4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - GENERATE after a section
|
||||||
|
A
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
A
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - GENERATE after a section
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - GENERATE after a section
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - GENERATE after a section
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - Section followed by flat generate
|
||||||
|
A
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( 1 )
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - Section followed by flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - Section followed by flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
A
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
A
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 1
|
||||||
|
j := 3
|
||||||
|
k := 5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
B
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 1
|
||||||
|
j := 3
|
||||||
|
k := 6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
B
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 1
|
||||||
|
j := 4
|
||||||
|
k := 5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 1
|
||||||
|
j := 4
|
||||||
|
k := 6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
A
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
A
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 2
|
||||||
|
j := 3
|
||||||
|
k := 5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
B
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 2
|
||||||
|
j := 3
|
||||||
|
k := 6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
B
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 2
|
||||||
|
j := 4
|
||||||
|
k := 5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 2
|
||||||
|
j := 4
|
||||||
|
k := 6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
|
#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
@ -13709,6 +14127,6 @@ Misc.tests.cpp:<line number>
|
|||||||
Misc.tests.cpp:<line number>: PASSED:
|
Misc.tests.cpp:<line number>: PASSED:
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
test cases: 316 | 226 passed | 86 failed | 4 failed as expected
|
test cases: 321 | 231 passed | 86 failed | 4 failed as expected
|
||||||
assertions: 1733 | 1564 passed | 148 failed | 21 failed as expected
|
assertions: 1775 | 1606 passed | 148 failed | 21 failed as expected
|
||||||
|
|
||||||
|
@ -309,6 +309,424 @@ Generators.tests.cpp:<line number>: PASSED:
|
|||||||
with expansion:
|
with expansion:
|
||||||
2 != 4
|
2 != 4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - GENERATE after a section
|
||||||
|
A
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
A
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - GENERATE after a section
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - GENERATE after a section
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - GENERATE after a section
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - Section followed by flat generate
|
||||||
|
A
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( 1 )
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - Section followed by flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - Section followed by flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - flat generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
A
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
A
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 1
|
||||||
|
j := 3
|
||||||
|
k := 5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
B
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 1
|
||||||
|
j := 3
|
||||||
|
k := 6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
B
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 1
|
||||||
|
j := 4
|
||||||
|
k := 5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 1
|
||||||
|
j := 4
|
||||||
|
k := 6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
A
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
A
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 2
|
||||||
|
j := 3
|
||||||
|
k := 5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
B
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 2
|
||||||
|
j := 3
|
||||||
|
k := 6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
B
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with message:
|
||||||
|
B
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 2
|
||||||
|
j := 4
|
||||||
|
k := 5
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - mixed sections and generates
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
with messages:
|
||||||
|
i := 2
|
||||||
|
j := 4
|
||||||
|
k := 6
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
#1938 - nested generate
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
PartTracker.tests.cpp:<line number>
|
||||||
|
...............................................................................
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( m )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
|
PartTracker.tests.cpp:<line number>: PASSED:
|
||||||
|
REQUIRE( n )
|
||||||
|
with expansion:
|
||||||
|
3
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
|
#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
@ -513,6 +931,6 @@ Condition.tests.cpp:<line number>: FAILED:
|
|||||||
CHECK( true != true )
|
CHECK( true != true )
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
test cases: 26 | 21 passed | 3 failed | 2 failed as expected
|
test cases: 31 | 26 passed | 3 failed | 2 failed as expected
|
||||||
assertions: 58 | 51 passed | 4 failed | 3 failed as expected
|
assertions: 100 | 93 passed | 4 failed | 3 failed as expected
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<testsuitesloose text artifact
|
<testsuitesloose text artifact
|
||||||
>
|
>
|
||||||
<testsuite name="<exe-name>" errors="17" failures="132" tests="1734" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
<testsuite name="<exe-name>" errors="17" failures="132" tests="1776" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="filters" value="~[!nonportable]~[!benchmark]~[approvals]"/>
|
<property name="filters" value="~[!nonportable]~[!benchmark]~[approvals]"/>
|
||||||
<property name="random-seed" value="1"/>
|
<property name="random-seed" value="1"/>
|
||||||
@ -35,6 +35,15 @@ Nor would this
|
|||||||
<testcase classname="<exe-name>.global" name="#1912 -- test spec parser handles escaping/backslash in test name" time="{duration}" status="run"/>
|
<testcase classname="<exe-name>.global" name="#1912 -- test spec parser handles escaping/backslash in test name" time="{duration}" status="run"/>
|
||||||
<testcase classname="<exe-name>.global" name="#1913 - GENERATE inside a for loop should not keep recreating the generator" time="{duration}" status="run"/>
|
<testcase classname="<exe-name>.global" name="#1913 - GENERATE inside a for loop should not keep recreating the generator" time="{duration}" status="run"/>
|
||||||
<testcase classname="<exe-name>.global" name="#1913 - GENERATEs can share a line" time="{duration}" status="run"/>
|
<testcase classname="<exe-name>.global" name="#1913 - GENERATEs can share a line" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - GENERATE after a section/A" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - GENERATE after a section/B" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - Section followed by flat generate" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - Section followed by flat generate/A" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - flat generate" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - mixed sections and generates" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - mixed sections and generates/A" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - mixed sections and generates/B" time="{duration}" status="run"/>
|
||||||
|
<testcase classname="<exe-name>.global" name="#1938 - nested generate" time="{duration}" status="run"/>
|
||||||
<testcase classname="<exe-name>.global" name="#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0" time="{duration}" status="run"/>
|
<testcase classname="<exe-name>.global" name="#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0" time="{duration}" status="run"/>
|
||||||
<testcase classname="<exe-name>.global" name="#1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0" time="{duration}" status="run"/>
|
<testcase classname="<exe-name>.global" name="#1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0" time="{duration}" status="run"/>
|
||||||
<testcase classname="<exe-name>.global" name="#1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0" time="{duration}" status="run"/>
|
<testcase classname="<exe-name>.global" name="#1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0" time="{duration}" status="run"/>
|
||||||
|
@ -99,6 +99,15 @@
|
|||||||
<testCase name="Generators internals/Range/Negative manual step/Integer/Slightly under end" duration="{duration}"/>
|
<testCase name="Generators internals/Range/Negative manual step/Integer/Slightly under end" duration="{duration}"/>
|
||||||
</file>
|
</file>
|
||||||
<file path="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp">
|
<file path="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp">
|
||||||
|
<testCase name="#1938 - GENERATE after a section/A" duration="{duration}"/>
|
||||||
|
<testCase name="#1938 - GENERATE after a section/B" duration="{duration}"/>
|
||||||
|
<testCase name="#1938 - Section followed by flat generate" duration="{duration}"/>
|
||||||
|
<testCase name="#1938 - Section followed by flat generate/A" duration="{duration}"/>
|
||||||
|
<testCase name="#1938 - flat generate" duration="{duration}"/>
|
||||||
|
<testCase name="#1938 - mixed sections and generates" duration="{duration}"/>
|
||||||
|
<testCase name="#1938 - mixed sections and generates/A" duration="{duration}"/>
|
||||||
|
<testCase name="#1938 - mixed sections and generates/B" duration="{duration}"/>
|
||||||
|
<testCase name="#1938 - nested generate" duration="{duration}"/>
|
||||||
<testCase name="Tracker" duration="{duration}"/>
|
<testCase name="Tracker" duration="{duration}"/>
|
||||||
<testCase name="Tracker/successfully close one section" duration="{duration}"/>
|
<testCase name="Tracker/successfully close one section" duration="{duration}"/>
|
||||||
<testCase name="Tracker/fail one section" duration="{duration}"/>
|
<testCase name="Tracker/fail one section" duration="{duration}"/>
|
||||||
|
@ -318,6 +318,342 @@ Nor would this
|
|||||||
</Expression>
|
</Expression>
|
||||||
<OverallResult success="true"/>
|
<OverallResult success="true"/>
|
||||||
</TestCase>
|
</TestCase>
|
||||||
|
<TestCase name="#1938 - GENERATE after a section" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Section name="A" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<OverallResult success="true"/>
|
||||||
|
</TestCase>
|
||||||
|
<TestCase name="#1938 - Section followed by flat generate" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Section name="A" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
1
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<OverallResult success="true"/>
|
||||||
|
</TestCase>
|
||||||
|
<TestCase name="#1938 - flat generate" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<OverallResult success="true"/>
|
||||||
|
</TestCase>
|
||||||
|
<TestCase name="#1938 - mixed sections and generates" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Section name="A" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Info>
|
||||||
|
i := 1
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
j := 3
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
k := 5
|
||||||
|
</Info>
|
||||||
|
<Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Info>
|
||||||
|
i := 1
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
j := 3
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
k := 6
|
||||||
|
</Info>
|
||||||
|
<Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Info>
|
||||||
|
i := 1
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
j := 4
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
k := 5
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 1
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
j := 4
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
k := 6
|
||||||
|
</Info>
|
||||||
|
<Section name="A" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Info>
|
||||||
|
i := 2
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
j := 3
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
k := 5
|
||||||
|
</Info>
|
||||||
|
<Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Info>
|
||||||
|
i := 2
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
j := 3
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
k := 6
|
||||||
|
</Info>
|
||||||
|
<Section name="B" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<OverallResults successes="1" failures="0" expectedFailures="0"/>
|
||||||
|
</Section>
|
||||||
|
<Info>
|
||||||
|
i := 2
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
j := 4
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
k := 5
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
i := 2
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
j := 4
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
k := 6
|
||||||
|
</Info>
|
||||||
|
<OverallResult success="true"/>
|
||||||
|
</TestCase>
|
||||||
|
<TestCase name="#1938 - nested generate" tags="[!hide][.][generators][regression]" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
1
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
2
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
m
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/IntrospectiveTests/PartTracker.tests.cpp" >
|
||||||
|
<Original>
|
||||||
|
n
|
||||||
|
</Original>
|
||||||
|
<Expanded>
|
||||||
|
3
|
||||||
|
</Expanded>
|
||||||
|
</Expression>
|
||||||
|
<OverallResult success="true"/>
|
||||||
|
</TestCase>
|
||||||
<TestCase name="#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0" tags="[!hide][.][compilation][regression]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
|
<TestCase name="#1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0" tags="[!hide][.][compilation][regression]" filename="projects/<exe-name>/UsageTests/Misc.tests.cpp" >
|
||||||
<OverallResult success="true"/>
|
<OverallResult success="true"/>
|
||||||
</TestCase>
|
</TestCase>
|
||||||
@ -16375,9 +16711,9 @@ loose text artifact
|
|||||||
</Section>
|
</Section>
|
||||||
<OverallResult success="true"/>
|
<OverallResult success="true"/>
|
||||||
</TestCase>
|
</TestCase>
|
||||||
<OverallResults successes="1564" failures="149" expectedFailures="21"/>
|
<OverallResults successes="1606" failures="149" expectedFailures="21"/>
|
||||||
<OverallResultsCases successes="226" failures="86" expectedFailures="4"/>
|
<OverallResultsCases successes="231" failures="86" expectedFailures="4"/>
|
||||||
</Group>
|
</Group>
|
||||||
<OverallResults successes="1564" failures="148" expectedFailures="21"/>
|
<OverallResults successes="1606" failures="148" expectedFailures="21"/>
|
||||||
<OverallResultsCases successes="226" failures="86" expectedFailures="4"/>
|
<OverallResultsCases successes="231" failures="86" expectedFailures="4"/>
|
||||||
</Catch>
|
</Catch>
|
||||||
|
@ -204,3 +204,50 @@ TEST_CASE("#1670 regression check", "[.approvals][tracker]") {
|
|||||||
SECTION("2") SUCCEED();
|
SECTION("2") SUCCEED();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// #1938 required a rework on how generator tracking works, so that `GENERATE`
|
||||||
|
// supports being sandwiched between two `SECTION`s. The following tests check
|
||||||
|
// various other scenarios through checking output in approval tests.
|
||||||
|
TEST_CASE("#1938 - GENERATE after a section", "[.][regression][generators]") {
|
||||||
|
SECTION("A") {
|
||||||
|
SUCCEED("A");
|
||||||
|
}
|
||||||
|
auto m = GENERATE(1, 2, 3);
|
||||||
|
SECTION("B") {
|
||||||
|
REQUIRE(m);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST_CASE("#1938 - flat generate", "[.][regression][generators]") {
|
||||||
|
auto m = GENERATE(1, 2, 3);
|
||||||
|
REQUIRE(m);
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST_CASE("#1938 - nested generate", "[.][regression][generators]") {
|
||||||
|
auto m = GENERATE(1, 2, 3);
|
||||||
|
auto n = GENERATE(1, 2, 3);
|
||||||
|
REQUIRE(m);
|
||||||
|
REQUIRE(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST_CASE("#1938 - mixed sections and generates", "[.][regression][generators]") {
|
||||||
|
auto i = GENERATE(1, 2);
|
||||||
|
SECTION("A") {
|
||||||
|
SUCCEED("A");
|
||||||
|
}
|
||||||
|
auto j = GENERATE(3, 4);
|
||||||
|
SECTION("B") {
|
||||||
|
SUCCEED("B");
|
||||||
|
}
|
||||||
|
auto k = GENERATE(5, 6);
|
||||||
|
CAPTURE(i, j, k);
|
||||||
|
SUCCEED();
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST_CASE("#1938 - Section followed by flat generate", "[.][regression][generators]") {
|
||||||
|
SECTION("A") {
|
||||||
|
REQUIRE(1);
|
||||||
|
}
|
||||||
|
auto m = GENERATE(2, 3);
|
||||||
|
REQUIRE(m);
|
||||||
|
}
|
||||||
|
@ -267,6 +267,7 @@ TEST_CASE("#1913 - GENERATEs can share a line", "[regression][generators]") {
|
|||||||
REQUIRE(i != j);
|
REQUIRE(i != j);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user