Skip to content

Commit

Permalink
Cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Oct 8, 2023
1 parent bb8d50f commit bf497ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/std-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,8 @@ TEST(std_test, format_const_bit_reference) {
}

TEST(std_test, format_bitset) {
const std::bitset<6> bs(42);
auto bs = std::bitset<6>(42);
EXPECT_EQ(fmt::format("{}", bs), "101010");
EXPECT_EQ(fmt::format("{:.4}", bs), "101010");
EXPECT_EQ(fmt::format("{:0>8}", bs), "00101010");
EXPECT_EQ(fmt::format("{:-^12}", bs), "---101010---");
}
Expand Down

0 comments on commit bf497ac

Please sign in to comment.