dynarmic/externals/fmt/test/ranges-odr-test.cc
Merry 8b3bef13dc externals: Update fmt to 8.1.1
Merge commit '6633089a44b13022ddb37a44229c9d9a88a9096f'
2022-02-15 11:15:34 +00:00

17 lines
454 B
C++

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