From 4a28216e688a337090024d22b5e3edcdf9c6e674 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 16 Nov 2013 21:56:28 -0800 Subject: [PATCH] Fix test. --- format_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/format_test.cc b/format_test.cc index 29d27497..dea850df 100644 --- a/format_test.cc +++ b/format_test.cc @@ -685,9 +685,9 @@ TEST(FormatterTest, SpaceSign) { TEST(FormatterTest, HashFlag) { EXPECT_EQ("42", str(Format("{0:#}") << 42)); EXPECT_EQ("-42", str(Format("{0:#}") << -42)); - EXPECT_EQ("0b101010", str(Format("{0:#b}") << 0x42)); - EXPECT_EQ("0B101010", str(Format("{0:#B}") << 0x42)); - EXPECT_EQ("-0b101010", str(Format("{0:#b}") << -0x42)); + EXPECT_EQ("0b101010", str(Format("{0:#b}") << 42)); + EXPECT_EQ("0B101010", str(Format("{0:#B}") << 42)); + EXPECT_EQ("-0b101010", str(Format("{0:#b}") << -42)); EXPECT_EQ("0x42", str(Format("{0:#x}") << 0x42)); EXPECT_EQ("0X42", str(Format("{0:#X}") << 0x42)); EXPECT_EQ("-0x42", str(Format("{0:#x}") << -0x42));