mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Add unicode-test
This commit is contained in:
parent
dd8f38fcbb
commit
069131dc25
@ -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
11
test/unicode-test.cc
Normal 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()); }
|
Loading…
Reference in New Issue
Block a user