comparison dep/fmt/test/ranges-odr-test.cc @ 343:1faa72660932

*: transfer back to cmake from autotools autotools just made lots of things more complicated than they should have and many things broke (i.e. translations)
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 05:56:06 -0400
parents
children
comparison
equal deleted inserted replaced
342:adb79bdde329 343:1faa72660932
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
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 }