File: header-only-test.cc

package info (click to toggle)
fmtlib 9.1.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,720 kB
  • sloc: cpp: 19,541; ansic: 1,800; python: 140; sh: 53; makefile: 24
file content (11 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
// Header-only configuration test

#include "fmt/core.h"
#include "fmt/ostream.h"
#include "gtest/gtest.h"

#ifndef FMT_HEADER_ONLY
#  error "Not in the header-only mode."
#endif

TEST(header_only_test, format) { EXPECT_EQ(fmt::format("foo"), "foo"); }