mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Add more weird chrono::duration stringification tests
This commit is contained in:
parent
28d1955ea8
commit
8c32d0b644
@ -1053,5 +1053,5 @@ with expansion:
|
||||
|
||||
===============================================================================
|
||||
test cases: 191 | 139 passed | 48 failed | 4 failed as expected
|
||||
assertions: 954 | 830 passed | 103 failed | 21 failed as expected
|
||||
assertions: 955 | 831 passed | 103 failed | 21 failed as expected
|
||||
|
||||
|
@ -5127,6 +5127,12 @@ PASSED:
|
||||
with expansion:
|
||||
1 [30/1]s != 1 fs
|
||||
|
||||
ToStringChrono.tests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( pico_second != atto_second )
|
||||
with expansion:
|
||||
1 ps != 1 as
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Stringifying std::chrono::time_point<system_clock>
|
||||
-------------------------------------------------------------------------------
|
||||
@ -8004,5 +8010,5 @@ PASSED:
|
||||
|
||||
===============================================================================
|
||||
test cases: 191 | 137 passed | 50 failed | 4 failed as expected
|
||||
assertions: 953 | 826 passed | 106 failed | 21 failed as expected
|
||||
assertions: 954 | 827 passed | 106 failed | 21 failed as expected
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuitesloose text artifact
|
||||
>
|
||||
<testsuite name="<exe-name>" errors="15" failures="92" tests="954" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
||||
<testsuite name="<exe-name>" errors="15" failures="92" tests="955" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
|
||||
<testcase classname="<exe-name>.global" name="# A test name that starts with a #" time="{duration}"/>
|
||||
<testcase classname="<exe-name>.global" name="#1005: Comparing pointer to int and long (NULL can be either on various systems)" time="{duration}"/>
|
||||
<testcase classname="<exe-name>.global" name="#1027" time="{duration}"/>
|
||||
|
@ -5878,6 +5878,14 @@ Message from section two
|
||||
1 [30/1]s != 1 fs
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
|
||||
<Original>
|
||||
pico_second != atto_second
|
||||
</Original>
|
||||
<Expanded>
|
||||
1 ps != 1 as
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="Stringifying std::chrono::time_point<system_clock>" tags="[chrono][toString]" filename="projects/<exe-name>/UsageTests/ToStringChrono.tests.cpp" >
|
||||
@ -8889,7 +8897,7 @@ loose text artifact
|
||||
</Section>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<OverallResults successes="826" failures="107" expectedFailures="21"/>
|
||||
<OverallResults successes="827" failures="107" expectedFailures="21"/>
|
||||
</Group>
|
||||
<OverallResults successes="826" failures="106" expectedFailures="21"/>
|
||||
<OverallResults successes="827" failures="106" expectedFailures="21"/>
|
||||
</Catch>
|
||||
|
@ -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]") {
|
||||
|
Loading…
Reference in New Issue
Block a user