hugolib: Refactor tests for JSON, YAML and TOML equivalency, add coverage
authorVas Sudanagunta <vas@commonkarma.org>
Sun, 11 Feb 2018 21:27:47 +0000 (16:27 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 12 Feb 2018 16:14:40 +0000 (17:14 +0100)
commit82eefded1353f0198fd8fe9f7df1aa620d3d50eb
tree2b97eb13fb08491952b450db48b3e3cf97c54e4e
parente1728349930e2cc1b6580766473de98adb0f3e50
hugolib: Refactor tests for JSON, YAML and TOML equivalency, add coverage

The same code now cycles through equivalent JSON, YAML and TOML data sets,
verifying output both proper and identical. Coverage increased by applying
previous tests for one format to the others.

More DRY. Added tests for numeric and bool value types.
hugolib/datafiles_test.go