git repos / blockattack-game

source/misc/embedded_libs/fmt-11.0.2/test/header-only-test.cc

browsing at commit = 66d34b8a1bd5ba8f1cdd35b729d9abaa099c0744

raw · blame · history

// Header-only configuration test

#include "fmt/base.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"); }