fmt/test/header-only-test.cc

12 lines
253 B
C++
Raw Normal View History

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