mirror of
				https://github.com/red0124/ssp.git
				synced 2025-11-04 06:36:45 +01:00 
			
		
		
		
	Fix big number extraction test
This commit is contained in:
		
							parent
							
								
									32cbfe1d17
								
							
						
					
					
						commit
						b9d2c2aad9
					
				@ -64,8 +64,8 @@ TEST_CASE("extract test functions for numbers with invalid inputs") {
 | 
			
		||||
    CHECK_INVALID_CONVERSION("xxx1", float);
 | 
			
		||||
 | 
			
		||||
    // number too big
 | 
			
		||||
    CHECK_INVALID_CONVERSION((std::string{40, '1'} + "." +
 | 
			
		||||
                              std::string{40, '2'}),
 | 
			
		||||
    CHECK_INVALID_CONVERSION((std::string(40, '1') + "." +
 | 
			
		||||
                              std::string(40, '2')),
 | 
			
		||||
                             double);
 | 
			
		||||
 | 
			
		||||
    // random input for int
 | 
			
		||||
 | 
			
		||||
@ -31,8 +31,8 @@ TEST_CASE("extract test functions for numbers with invalid inputs without fast "
 | 
			
		||||
    CHECK_INVALID_CONVERSION("xxx1", float);
 | 
			
		||||
 | 
			
		||||
    // number too big
 | 
			
		||||
    CHECK_INVALID_CONVERSION((std::string{40, '1'} + "." +
 | 
			
		||||
                              std::string{40, '2'}),
 | 
			
		||||
    CHECK_INVALID_CONVERSION((std::string(40, '1') + "." +
 | 
			
		||||
                              std::string(40, '2')),
 | 
			
		||||
                             double);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user