• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Formatting library for C++ - the core API
2 //
3 // Copyright (c) 2012 - present, Victor Zverovich
4 // All rights reserved.
5 //
6 // For the license information refer to format.h.
7 
8 #include <vector>
9 
10 #include "fmt/ranges.h"
11 #include "gtest/gtest.h"
12 
13 // call fmt::format from another translation unit to test ODR
TEST(ranges_odr_test,format_vector)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]");
17 }
18