mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Introduce conditional wchar_t (and std::wstring) support
The support is turned on by default but the user might need to be able to turn it off which is now possible by defining CATCH_CONFIG_NO_WCHAR.
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							865d5f59b4
						
					
				
				
					commit
					352853ed7e
				
			@@ -290,6 +290,7 @@ TEST_CASE( "Tabs and newlines show in output", "[.][whitespace][failing]" ) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#ifdef CATCH_CONFIG_WCHAR
 | 
			
		||||
TEST_CASE( "toString on const wchar_t const pointer returns the string contents", "[toString]" ) {
 | 
			
		||||
        const wchar_t * const s = L"wide load";
 | 
			
		||||
        std::string result = ::Catch::Detail::stringify( s );
 | 
			
		||||
@@ -313,6 +314,7 @@ TEST_CASE( "toString on wchar_t returns the string contents", "[toString]" ) {
 | 
			
		||||
        std::string result = ::Catch::Detail::stringify( s );
 | 
			
		||||
        CHECK( result == "\"wide load\"" );
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
TEST_CASE( "long long" ) {
 | 
			
		||||
    long long l = std::numeric_limits<long long>::max();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user