mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-17 02:25:38 +02:00
Approved tag alias tests
This commit is contained in:
@@ -7162,6 +7162,87 @@ there"
|
||||
</Section>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="Tag alias can be registered against tag patterns">
|
||||
<Section name="The same tag alias can only be registered once">
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TagAliasTests.cpp" >
|
||||
<Original>
|
||||
what Contains( "[@zzz]" )
|
||||
</Original>
|
||||
<Expanded>
|
||||
"error: tag alias, "[@zzz]" already registered.
|
||||
First seen at file:2
|
||||
Redefined at file:10" contains: "[@zzz]"
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TagAliasTests.cpp" >
|
||||
<Original>
|
||||
what Contains( "file" )
|
||||
</Original>
|
||||
<Expanded>
|
||||
"error: tag alias, "[@zzz]" already registered.
|
||||
First seen at file:2
|
||||
Redefined at file:10" contains: "file"
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TagAliasTests.cpp" >
|
||||
<Original>
|
||||
what Contains( "2" )
|
||||
</Original>
|
||||
<Expanded>
|
||||
"error: tag alias, "[@zzz]" already registered.
|
||||
First seen at file:2
|
||||
Redefined at file:10" contains: "2"
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TagAliasTests.cpp" >
|
||||
<Original>
|
||||
what Contains( "10" )
|
||||
</Original>
|
||||
<Expanded>
|
||||
"error: tag alias, "[@zzz]" already registered.
|
||||
First seen at file:2
|
||||
Redefined at file:10" contains: "10"
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResults successes="4" failures="0"/>
|
||||
</Section>
|
||||
<Section name="Tag aliases must be of the form [@name]">
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TagAliasTests.cpp" >
|
||||
<Original>
|
||||
registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
|
||||
</Original>
|
||||
<Expanded>
|
||||
registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TagAliasTests.cpp" >
|
||||
<Original>
|
||||
registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
|
||||
</Original>
|
||||
<Expanded>
|
||||
registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TagAliasTests.cpp" >
|
||||
<Original>
|
||||
registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
|
||||
</Original>
|
||||
<Expanded>
|
||||
registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TagAliasTests.cpp" >
|
||||
<Original>
|
||||
registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
|
||||
</Original>
|
||||
<Expanded>
|
||||
registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResults successes="4" failures="0"/>
|
||||
</Section>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="Anonymous test case 1">
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
@@ -7483,7 +7564,7 @@ there"
|
||||
</Section>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<OverallResults successes="603" failures="112"/>
|
||||
<OverallResults successes="611" failures="112"/>
|
||||
</Group>
|
||||
<OverallResults successes="603" failures="112"/>
|
||||
<OverallResults successes="611" failures="112"/>
|
||||
</Catch>
|
||||
|
Reference in New Issue
Block a user