ChaiScript/unittests/json_9.chai
Glen Fraser db80a5f4bf Handle negative numbers in parse_num
- fix issue #334, where negative numbers loaded from JSON were being
  parsed as 0.
- add unit tests to cover these cases.
2017-03-14 11:19:54 +01:00

3 lines
47 B
ChaiScript

assert_equal(from_json("[1,-2,3]"), [1,-2,3])