Commit graph

6 commits

Author SHA1 Message Date
Martin Tournoij
5221b3d3d6
Fix toml_json.c output (#85)
* Fix toml_json.c output

There were two issues; partly related to changes in upstream toml-test:

- Use appropriate type for local date and times.

- The arrays would get printed as:

      {"type": "array", "value": [...the values...]}

  But this should just be:

      [...the values...]

  It also wouldn't print mixed arrays because 'm' was missing in the
  switch; I adapted this from toml_cat.c.

Before:

	toml-test [./toml_json]: using embedded tests: 328 passed, 87 failed

After:

	toml-test [./toml_json]: using embedded tests: 351 passed, 64 failed

The remaining test failures look like a few minor issues in toml.c,
rather than toml_json.c

* Also fix the "test1" toml-test runner
2023-09-30 12:36:59 -07:00
Cameron Moore
1d4fc82ebc
fix toml-test build script for Go 1.17
Fixes #62
2021-11-22 19:26:59 -06:00
CK Tan
6b49aaf863 fix to make it run 2021-07-05 00:11:10 -07:00
CK Tan
e9bfb63807 updated 2021-04-11 15:24:10 -07:00
CK Tan
5039045945 minor 2020-12-05 14:25:39 -08:00
CK Tan
c32a6e92f1 v0.5 compliant 2019-10-08 16:58:18 -07:00