Add unicode-test

This commit is contained in:
Victor Zverovich 2021-05-24 06:20:51 -07:00
parent dd8f38fcbb
commit 069131dc25
2 changed files with 15 additions and 0 deletions

View File

@ -77,6 +77,10 @@ add_fmt_test(compile-test)
add_fmt_test(printf-test)
add_fmt_test(ranges-test)
add_fmt_test(scan-test)
add_fmt_test(unicode-test HEADER_ONLY)
if (MSVC)
target_compile_options(unicode-test PRIVATE /utf-8)
endif ()
add_fmt_test(wchar-test)
if (FMT_CAN_MODULE)

11
test/unicode-test.cc Normal file
View File

@ -0,0 +1,11 @@
// Formatting library for C++ - Unicode tests
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#include "fmt/core.h"
#include "gtest/gtest.h"
TEST(unicode_test, is_utf8) { EXPECT_TRUE(fmt::detail::is_utf8()); }