Skip to content

Provide integration with toml-test #57

Description

@arp242

The toml-test test suite has many test cases: https://github.com/toml-lang/toml-test – it would be nice if Tomlet could provide an integration for it to validate conformance to the TOML spec.

Eventually I'm hoping all (maintained) parsers can be added to https://toml-lang.github.io/toml-test-matrix.

Integrating support should be fairly easy: you need to build a binary that converts TOML to JSON with some type information and vice versa; see the toml-test README. I'd do it myself, but I never did much C#, so it's relatively difficult/time-consuming for me to write.

Also see the tomlyn code for a C# example, which can probably be adapted:

https://github.com/toml-lang/toml-test-matrix/blob/main/scripts/cs-tomlyn-decoder.cs

https://github.com/toml-lang/toml-test-matrix/blob/main/scripts/cs-tomlyn-encoder.cs

Feel free to let me know if you have any questions/problems.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions