From db99c1aa6462ac50b5eed23b775b43c08afff599 Mon Sep 17 00:00:00 2001 From: Raman Date: Tue, 12 Jul 2016 19:55:35 +0200 Subject: [PATCH] Update test.cpp --- tests/test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test.cpp b/tests/test.cpp index 6f3b06299..6cac364ae 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -837,6 +837,9 @@ void ValueTest() { // Test conversion functions. TEST_EQ(FloatCompare(TestValue("{ Y:cos(rad(180)) }"), -1), true); + + // Test negative hex constant. + TEST_EQ(TestValue("{ Y:-0x80 }") == -128, true); } void EnumStringsTest() {