llvm.org GIT mirror llvm / 9472a9d
Add min and max tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79454 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 10 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5252 EXPECT_EQ("0x0", printToString((void*) 0));
5353 EXPECT_EQ("0xbeef", printToString((void*) 0xbeef));
5454 EXPECT_EQ("0xdeadbeef", printToString((void*) 0xdeadbeef));
55
56 // Min and max.
57 EXPECT_EQ("18446744073709551615", printToString(UINT64_MAX));
58 EXPECT_EQ("-9223372036854775808", printToString(INT64_MIN));
5559 }
5660
5761 TEST(raw_ostreamTest, Types_Unbuffered) {
7983 EXPECT_EQ("0x0", printToStringUnbuffered((void*) 0));
8084 EXPECT_EQ("0xbeef", printToStringUnbuffered((void*) 0xbeef));
8185 EXPECT_EQ("0xdeadbeef", printToStringUnbuffered((void*) 0xdeadbeef));
86
87 // Min and max.
88 EXPECT_EQ("18446744073709551615", printToStringUnbuffered(UINT64_MAX));
89 EXPECT_EQ("-9223372036854775808", printToStringUnbuffered(INT64_MIN));
8290 }
8391
8492 }