header-only-test.cc 253 B

1234567891011
  1. // Header-only configuration test
  2. #include "fmt/core.h"
  3. #include "fmt/ostream.h"
  4. #include "gtest/gtest.h"
  5. #ifndef FMT_HEADER_ONLY
  6. # error "Not in the header-only mode."
  7. #endif
  8. TEST(header_only_test, format) { EXPECT_EQ(fmt::format("foo"), "foo"); }