mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-08 02:28:15 +00:00
15 lines
377 B
C++
15 lines
377 B
C++
|
// Formatting library for C++ - folly::StringPiece formatter tests
|
||
|
//
|
||
|
// Copyright (c) 2012 - present, Victor Zverovich
|
||
|
// All rights reserved.
|
||
|
//
|
||
|
// For the license information refer to format.h.
|
||
|
|
||
|
#include <fmt/folly.h>
|
||
|
#include "gtest.h"
|
||
|
|
||
|
TEST(FollyTest, FormatStringPiece) {
|
||
|
EXPECT_EQ(fmt::format("{}", "foo"), "foo");
|
||
|
EXPECT_EQ(fmt::format("{:>5}", "foo"), " foo");
|
||
|
}
|