mirror of
https://github.com/json-c/json-c.git
synced 2026-04-12 16:59:06 +08:00
Extend test_double_serializer to check NaN and Infinity handling.
This commit is contained in:
@@ -17,3 +17,6 @@ obj(12.0).to_string(%.0f)=12
|
||||
obj(12.0).to_string(%.0g)=1e+01
|
||||
obj(12.0).to_string(%.1g)=12.0
|
||||
obj(-12.0).to_string(default format)=-12.0
|
||||
obj(0.0/0.0)=NaN
|
||||
obj(1.0/0.0)=Infinity
|
||||
obj(-1.0/0.0)=-Infinity
|
||||
|
||||
Reference in New Issue
Block a user