Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Mar 10, 2021
1 parent 60f5d24 commit f9e0e90
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/compile-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,20 @@ TEST(IteratorTest, TruncatingIterator) {
EXPECT_EQ(it.base(), p + 1);
}


TEST(IteratorTest, TruncatingIteratorDefaultConstruct) {
static_assert(
std::is_default_constructible<fmt::detail::truncating_iterator<char*>>::value,
"");
static_assert(std::is_default_constructible<
fmt::detail::truncating_iterator<char*>>::value,
"");

fmt::detail::truncating_iterator<char*> it;
EXPECT_EQ(nullptr, it.base());
EXPECT_EQ(std::size_t{0}, it.count());
}

#ifdef __cpp_lib_ranges
TEST(IteratorTest, TruncatingIteratorOutputIterator) {
static_assert(std::output_iterator<fmt::detail::truncating_iterator<char*>,
char>);
static_assert(
std::output_iterator<fmt::detail::truncating_iterator<char*>, char>);
}
#endif

Expand Down

0 comments on commit f9e0e90

Please sign in to comment.