Skip to content

Commit

Permalink
Remove an old workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Nov 19, 2024
1 parent dfad80d commit df249d8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/ranges-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
# define FMT_RANGES_TEST_ENABLE_C_STYLE_ARRAY
#endif

#if !FMT_MSC_VERSION || FMT_MSC_VERSION > 1910
# define FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT
#endif

#ifdef FMT_RANGES_TEST_ENABLE_C_STYLE_ARRAY
TEST(ranges_test, format_array) {
int arr[] = {1, 2, 3, 5, 7, 11};
Expand Down Expand Up @@ -240,12 +236,10 @@ template <size_t N> struct tuple_element<N, tuple_like> {
};
} // namespace std

#ifdef FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT
TEST(ranges_test, format_struct) {
auto t = tuple_like{42, "foo"};
EXPECT_EQ(fmt::format("{}", t), "(42, \"foo\")");
}
#endif // FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT

TEST(ranges_test, format_to) {
char buf[10];
Expand Down

0 comments on commit df249d8

Please sign in to comment.