fmt/test/header-only-test.cc

12 lines
253 B
C++
Raw Normal View History

2016-04-24 16:06:12 +00:00
// Header-only configuration test
2024-01-10 03:30:46 +00:00
#include "fmt/base.h"
2021-09-03 15:35:13 +00:00
#include "fmt/ostream.h"
#include "gtest/gtest.h"
2021-05-02 12:55:55 +00:00
#ifndef FMT_HEADER_ONLY
# error "Not in the header-only mode."
#endif
2021-09-03 15:35:13 +00:00
TEST(header_only_test, format) { EXPECT_EQ(fmt::format("foo"), "foo"); }