Add hex-format tests for !<integer>.

This commit is contained in:
Dejan Mircevski 2015-09-08 14:20:12 -04:00 committed by David Neto
parent ea5a2a5242
commit 1a3990233c

View File

@ -102,6 +102,12 @@ TEST_F(ImmediateIntTest, IntegerFollowingImmediate) {
// Negative integer.
EXPECT_EQ(CompileSuccessfully("OpConstant %10 %1 -123"),
CompileSuccessfully("OpConstant %10 !1 -123"));
// Hex value(s).
// EXPECT_EQ(CompileSuccessfully("OpConstant %10 %1 0x12345678"),
// CompileSuccessfully("OpConstant %10 !1 0x12345678"));
// EXPECT_EQ(CompileSuccessfully("OpConstant %10 %1 0x12345678 0x87654321"),
// CompileSuccessfully("OpConstant %10 !1 0x12345678 0x87654321"));
}
// Literal floats after !<integer> are handled correctly.