mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-20 17:17:13 +02:00
Update formatting library.
This commit is contained in:
vendor/Fmt
CMakeLists.txtChangeLog.rstREADME.rst
doc
include
src
support
test
CMakeLists.txtargs-test.ccchrono-test.cccolor-test.cc
compile-error-test
compile-fp-test.cccompile-test.cccore-test.ccenforce-checks-test.ccfind-package-test
formatformat-impl-test.ccformat-test.ccfuzzing
CMakeLists.txtbuild.shchrono-duration.ccchrono-timepoint.ccfloat.ccfuzzer-common.hnamed-arg.ccone-arg.cctwo-args.cc
gtest-extra.ccgtest-extra.hgtest
header-only-test.ccmodule-test.ccnoexception-test.ccos-test.ccostream-test.ccposix-mock-test.ccprintf-test.ccranges-odr-test.ccranges-test.ccstd-format-test.ccunicode-test.ccutil.hxchar-test.cc
11
vendor/Fmt/test/printf-test.cc
vendored
11
vendor/Fmt/test/printf-test.cc
vendored
@ -11,7 +11,6 @@
|
||||
#include <climits>
|
||||
#include <cstring>
|
||||
|
||||
#include "fmt/ostream.h"
|
||||
#include "fmt/xchar.h"
|
||||
#include "gtest-extra.h"
|
||||
#include "util.h"
|
||||
@ -481,12 +480,6 @@ TEST(printf_test, string) {
|
||||
EXPECT_PRINTF(L" (null)", L"%10s", null_wstr);
|
||||
}
|
||||
|
||||
TEST(printf_test, uchar_string) {
|
||||
unsigned char str[] = "test";
|
||||
unsigned char* pstr = str;
|
||||
EXPECT_EQ("test", fmt::sprintf("%s", pstr));
|
||||
}
|
||||
|
||||
TEST(printf_test, pointer) {
|
||||
int n;
|
||||
void* p = &n;
|
||||
@ -539,10 +532,6 @@ TEST(printf_test, wide_string) {
|
||||
EXPECT_EQ(L"abc", fmt::sprintf(L"%s", L"abc"));
|
||||
}
|
||||
|
||||
TEST(printf_test, printf_custom) {
|
||||
EXPECT_EQ("abc", test_sprintf("%s", test_string("abc")));
|
||||
}
|
||||
|
||||
TEST(printf_test, vprintf) {
|
||||
fmt::format_arg_store<fmt::printf_context, int> as{42};
|
||||
fmt::basic_format_args<fmt::printf_context> args(as);
|
||||
|
Reference in New Issue
Block a user