Mercurial > minori
view dep/fmt/test/ranges-odr-test.cc @ 369:47c9f8502269
*: clang-format all the things
I've edited the formatting a bit. Now pointer asterisks (and reference
ampersands) are on the variable instead of the type, as well as having
newlines for function braces (but nothing else)
author | Paper <paper@tflc.us> |
---|---|
date | Fri, 25 Jul 2025 10:16:02 -0400 |
parents | 1faa72660932 |
children |
line wrap: on
line source
// 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]"); }