mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
IntFormatter -> IntformatSpec in tests.
This commit is contained in:
parent
09f98854bf
commit
136ee89bb4
@ -355,10 +355,10 @@ TEST(WriterTest, oct) {
|
||||
|
||||
TEST(WriterTest, hex) {
|
||||
using fmt::hex;
|
||||
fmt::IntFormatter<int, fmt::TypeSpec<'x'> > (*phex)(int value) = hex;
|
||||
fmt::IntFormatSpec<int, fmt::TypeSpec<'x'> > (*phex)(int value) = hex;
|
||||
phex(42);
|
||||
// This shouldn't compile:
|
||||
//fmt::IntFormatter<short, fmt::TypeSpec<'x'> > (*phex2)(short value) = hex;
|
||||
//fmt::IntFormatSpec<short, fmt::TypeSpec<'x'> > (*phex2)(short value) = hex;
|
||||
|
||||
EXPECT_EQ("cafe", str(Writer() << hex(0xcafe)));
|
||||
EXPECT_EQ("babe", str(Writer() << hex(0xbabeu)));
|
||||
|
Loading…
Reference in New Issue
Block a user