Commit Graph

12 Commits

Author SHA1 Message Date
Maurice Makaay 44f022544f Restructured the BurntSushi testing code, to not let it be a part of the TOML AST. 2019-07-28 14:51:14 +00:00
Maurice Makaay bf7b693cb8 Lowering the number of forks required. 2019-07-24 22:42:54 +00:00
Maurice Makaay a28269800a Make use of the new feature to run without sanity check on the parser, to make the big testfiles-based test suite faster. 2019-06-30 01:07:13 +00:00
Maurice Makaay 9680c2b844 Implemented TOML arrays as a linked list, which prevents a lot of memory copying on large arrays. Also implemented a json comparison, inspired by BurnSushi's version, which makes the tests work when keys in JSON maps are not in the expected order. 2019-06-29 23:11:03 +00:00
Maurice Makaay 7227fdcb93 Integrated multiple file-based test suites (BurntSushi, iarna and my own) into the unit tests. BurntSushi's tests are also still supported using the test interface implementation from cmd/burntsushi-tester. 2019-06-29 15:45:52 +00:00
Maurice Makaay febe1ff568 Bits of code cleanup, no functional changes. 2019-06-28 08:23:43 +00:00
Maurice Makaay 5782971bde 100% compatibility with the BurntSushi tests established. 2019-06-27 22:43:17 +00:00
Maurice Makaay 0d4cb356e9 Straightening out a few small wrinkles that came up from testing against the BurntSushi testset. 2019-06-27 22:01:56 +00:00
Maurice Makaay 6b9a7adfd9 Added support for the BurntSushi TOML tests. 2019-06-27 13:58:13 +00:00
Maurice Makaay b95f255ae7 Moved all parser code into subpackage 'parse'. 2019-06-26 21:51:42 +00:00
Maurice Makaay 54cb75955d Went over the full TOML AST implementation to give stuff good names.
Also pushed all tests to ast_test to make sure that the public interface
is sufficient for using the package
2019-06-26 15:38:32 +00:00
Maurice Makaay 688894dbf2 Extracted the toml AST to its own subpackage. Preparation for having encoder and decoder as well, not all inside the main toml dir. 2019-06-26 13:57:22 +00:00