Add a path formatter

This commit is contained in:
Victor Zverovich
2022-05-16 17:32:25 -07:00
parent 8833f386e4
commit f0903ad9df
2 changed files with 45 additions and 0 deletions

16
test/std-test.cc Normal file
View File

@@ -0,0 +1,16 @@
// Formatting library for C++ - tests of formatters for standard library types
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#include "fmt/std.h"
#include "gtest/gtest.h"
TEST(std_test, path) {
#ifdef __cpp_lib_filesystem
EXPECT_EQ(fmt::format("{:8}", std::filesystem::path("foo")), "foo ");
#endif
}