mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-30 19:57:10 +01:00 
			
		
		
		
	Add more weird chrono::duration stringification tests
This commit is contained in:
		| @@ -20,8 +20,11 @@ TEST_CASE("Stringifying std::chrono::duration helpers", "[toString][chrono]") { | ||||
|  | ||||
| TEST_CASE("Stringifying std::chrono::duration with weird ratios", "[toString][chrono]") { | ||||
|     std::chrono::duration<int64_t, std::ratio<30>> half_minute(1); | ||||
|     std::chrono::duration<int64_t, std::ratio<1, 1000000000000>> pico_second(1); | ||||
|     std::chrono::duration<int64_t, std::ratio<1, 1000000000000000>> femto_second(1); | ||||
|     std::chrono::duration<int64_t, std::ratio<1, 1000000000000000000>> atto_second(1); | ||||
|     REQUIRE(half_minute != femto_second); | ||||
|     REQUIRE(pico_second != atto_second); | ||||
| } | ||||
|  | ||||
| TEST_CASE("Stringifying std::chrono::time_point<system_clock>", "[toString][chrono]") { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský