Update test.cpp

This commit is contained in:
Raman 2016-07-12 19:55:35 +02:00 committed by GitHub
parent f6f88e567e
commit db99c1aa64
1 changed files with 3 additions and 0 deletions

View File

@ -837,6 +837,9 @@ void ValueTest() {
// Test conversion functions. // Test conversion functions.
TEST_EQ(FloatCompare(TestValue("{ Y:cos(rad(180)) }"), -1), true); TEST_EQ(FloatCompare(TestValue("{ Y:cos(rad(180)) }"), -1), true);
// Test negative hex constant.
TEST_EQ(TestValue("{ Y:-0x80 }") == -128, true);
} }
void EnumStringsTest() { void EnumStringsTest() {