Skip to content

Commit

Permalink
Add uint32_t verification
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Aug 14, 2023
1 parent 3af91c1 commit 9de42cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/STL_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,7 @@ void test_from_chars_integer(const char* const str, [[maybe_unused]] const vecto

printf("%6.1f ns | %s\n", duration<double, nano>{finish - start}.count() / (N * K), str);

if constexpr (std::is_same_v<Integer, uint64_t>)
verify(round_trip == original);
verify(round_trip == original);
}

template <int base, typename Integer>
Expand All @@ -642,8 +641,7 @@ void test_boost_from_chars_integer(const char* const str, [[maybe_unused]] const

printf("%6.1f ns | %s\n", duration<double, nano>{finish - start}.count() / (N * K), str);

if constexpr (std::is_same_v<Integer, uint64_t>)
verify(round_trip == original);
verify(round_trip == original);
}

template <typename T, typename Iterator>
Expand Down

0 comments on commit 9de42cb

Please sign in to comment.