mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 18:41:11 +00:00
Update test.cpp
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user