
- fix issue #334, where negative numbers loaded from JSON were being parsed as 0. - add unit tests to cover these cases.
3 lines
74 B
ChaiScript
3 lines
74 B
ChaiScript
assert_equal(from_json("100"), 100)
|
|
assert_equal(from_json("-100"), -100)
|