mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Fix test tag parsing to split [.foo] into [.][foo]
This commit is contained in:
		| @@ -40,3 +40,8 @@ TEST_CASE( "Tag alias can be registered against tag patterns" ) { | ||||
|         CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) ); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| TEST_CASE("shortened hide tags are split apart") { | ||||
|     auto testcase = Catch::makeTestCase(nullptr, "", {"fake test name", "[.magic-tag]"}, CATCH_INTERNAL_LINEINFO); | ||||
|     REQUIRE_THAT(testcase.tags, Catch::VectorContains(std::string("magic-tag")) && Catch::VectorContains(std::string("."))); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský