Skip to content

Commit

Permalink
Fix some weirdness in ChronoTests
Browse files Browse the repository at this point in the history
Fixes #113
  • Loading branch information
emil-e committed Mar 6, 2016
1 parent 07a8047 commit 48e8e44
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions test/gen/ChronoTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,17 @@ struct DurationProperties {
} // namespace

TEST_CASE("arbitrary duration") {
prop("equivalent",
[] {
forEachType<DurationProperties,
std::chrono::nanoseconds,
std::chrono::microseconds,
std::chrono::milliseconds,
std::chrono::seconds,
std::chrono::minutes,
std::chrono::hours>();
});
forEachType<DurationProperties,
std::chrono::nanoseconds,
std::chrono::microseconds,
std::chrono::milliseconds,
std::chrono::seconds,
std::chrono::minutes,
std::chrono::hours>();
}

TEST_CASE("arbitrary time_point") {
prop("equivalent",
prop("equivalent to generator of underlying type",
[](const GenParams &params) {
using TimePoint = std::chrono::system_clock::time_point;
const auto gen =
Expand Down

0 comments on commit 48e8e44

Please sign in to comment.