23 lines
543 B
C++
23 lines
543 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.
|
|
//
|
|
// Copyright (c) 2018 - present, Remotion (Igor Schulz)
|
|
// All Rights Reserved
|
|
// {fmt} support for ranges, containers and types tuple interface.
|
|
|
|
#include "fmt/ranges.h"
|
|
|
|
#include <vector>
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
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]");
|
|
}
|
|
|