]>
git.proxmox.com Git - ceph.git/blob - ceph/src/fmt/test/ranges-odr-test.cc
1 // Formatting library for C++ - the core API
3 // Copyright (c) 2012 - present, Victor Zverovich
4 // All rights reserved.
6 // For the license information refer to format.h.
10 #include "fmt/ranges.h"
11 #include "gtest/gtest.h"
13 // call fmt::format from another translation unit to test ODR
14 TEST(ranges_odr_test
, format_vector
) {
15 auto v
= std::vector
<int>{1, 2, 3, 5, 7, 11};
16 EXPECT_EQ(fmt::format("{}", v
), "[1, 2, 3, 5, 7, 11]");