projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
676f071
)
Update test.cpp
author
Raman
<justzeddicus@gmail.com>
Thu, 14 Jul 2016 08:30:06 +0000
(10:30 +0200)
committer
GitHub
<noreply@github.com>
Thu, 14 Jul 2016 08:30:06 +0000
(10:30 +0200)
tests/test.cpp
patch
|
blob
|
history
diff --git
a/tests/test.cpp
b/tests/test.cpp
index
06fa79a
..
4f817f0
100644
(file)
--- a/
tests/test.cpp
+++ b/
tests/test.cpp
@@
-833,7
+833,7
@@
bool FloatCompare(float a, float b) { return fabs(a - b) < 0.001; }
// Additional parser testing not covered elsewhere.
void ValueTest() {
// Test scientific notation numbers.
- TEST_EQ(FloatCompare(TestValue<float>("{ Y:0.0314159e+2 }"), 3.14159), true);
+ TEST_EQ(FloatCompare(TestValue<float>("{ Y:0.0314159e+2 }"),
(float)
3.14159), true);
// Test conversion functions.
TEST_EQ(FloatCompare(TestValue<float>("{ Y:cos(rad(180)) }"), -1), true);