Closed kPYKx7Ddw4n1aIKZ closed 3 years ago
I could add a unit test if needed.
I also added unit tests. They parse the existing Toml example files, serialize them, parse the result again and compare them structurally.
Hi @cleishm hope you are doing well, are there any plans to merge this PR? It looks good to me and even includes unit tests.
I created a Toml serializer implementation based on the
JsonSerializer
class. One can use thetoToml()
method of either theTomlTable
or theTomlArray
class.I tested it and it worked for my test cases but it still may not be perfect. I could add a unit test if needed.
This should solve #16 .