Commit 948ec49b authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot 7

Have StringTest use PRI*64 instead

Summary: This helps account for 32-bit vs. 64-bit compilation targets.

Reviewed By: benyl

Differential Revision: D3076523

fb-gh-sync-id: 56f49daaf55d242ac48f8b8d38a40c6d6230818b
shipit-source-id: 56f49daaf55d242ac48f8b8d38a40c6d6230818b
parent c7087eb7
......@@ -40,8 +40,8 @@ TEST(StringPrintf, NumericFormats) {
EXPECT_EQ("5000000000", stringPrintf("%lld", 5000000000LL));
EXPECT_EQ("-5000000000", stringPrintf("%lld", -5000000000LL));
EXPECT_EQ("-1", stringPrintf("%d", 0xffffffff));
EXPECT_EQ("-1", stringPrintf("%ld", 0xffffffffffffffff));
EXPECT_EQ("-1", stringPrintf("%ld", 0xffffffffffffffffUL));
EXPECT_EQ("-1", stringPrintf("%" PRId64, 0xffffffffffffffff));
EXPECT_EQ("-1", stringPrintf("%" PRId64, 0xffffffffffffffffUL));
EXPECT_EQ("7.7", stringPrintf("%1.1f", 7.7));
EXPECT_EQ("7.7", stringPrintf("%1.1lf", 7.7));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment