diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
| commit | 6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 (patch) | |
| tree | ed97e39ec77c5231ffd2c394493e68d00ddac5a4 /Homework/cs3460/rands/build/_deps/fmt-src/test/ranges-odr-test.cc | |
| download | misc-undergrad-main.tar.gz misc-undergrad-main.zip | |
Diffstat (limited to 'Homework/cs3460/rands/build/_deps/fmt-src/test/ranges-odr-test.cc')
| -rw-r--r-- | Homework/cs3460/rands/build/_deps/fmt-src/test/ranges-odr-test.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Homework/cs3460/rands/build/_deps/fmt-src/test/ranges-odr-test.cc b/Homework/cs3460/rands/build/_deps/fmt-src/test/ranges-odr-test.cc new file mode 100644 index 0000000..031354d --- /dev/null +++ b/Homework/cs3460/rands/build/_deps/fmt-src/test/ranges-odr-test.cc @@ -0,0 +1,17 @@ +// 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]"); +} |
