mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Add min and max tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
04087d069a
commit
9472a9d650
@ -53,6 +53,10 @@ TEST(raw_ostreamTest, Types_Buffered) {
|
||||
EXPECT_EQ("0x0", printToString((void*) 0));
|
||||
EXPECT_EQ("0xbeef", printToString((void*) 0xbeef));
|
||||
EXPECT_EQ("0xdeadbeef", printToString((void*) 0xdeadbeef));
|
||||
|
||||
// Min and max.
|
||||
EXPECT_EQ("18446744073709551615", printToString(UINT64_MAX));
|
||||
EXPECT_EQ("-9223372036854775808", printToString(INT64_MIN));
|
||||
}
|
||||
|
||||
TEST(raw_ostreamTest, Types_Unbuffered) {
|
||||
@ -80,6 +84,10 @@ TEST(raw_ostreamTest, Types_Unbuffered) {
|
||||
EXPECT_EQ("0x0", printToStringUnbuffered((void*) 0));
|
||||
EXPECT_EQ("0xbeef", printToStringUnbuffered((void*) 0xbeef));
|
||||
EXPECT_EQ("0xdeadbeef", printToStringUnbuffered((void*) 0xdeadbeef));
|
||||
|
||||
// Min and max.
|
||||
EXPECT_EQ("18446744073709551615", printToStringUnbuffered(UINT64_MAX));
|
||||
EXPECT_EQ("-9223372036854775808", printToStringUnbuffered(INT64_MIN));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user