Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compliance tests #2

Open
epage opened this issue Mar 22, 2023 · 1 comment
Open

Add compliance tests #2

epage opened this issue Mar 22, 2023 · 1 comment

Comments

@epage
Copy link

epage commented Mar 22, 2023

https://github.com/BurntSushi/toml-test is the semi-official compliance test suite. toml_test_harness is a rust crate that makes it semi-easy to add it to cargo test

Example

However, I'm unsure how well this can be integrated without a basic_toml::Table type (which is where I stopped in preparing my contribution). If toml::Table is compatible enough for datetimes, then maybe that can work.

@epage
Copy link
Author

epage commented Oct 23, 2023

FYI I added basic-toml to a TOML test matrix which includes compliance testing

You can find the relevant compliance testing code at https://github.com/arp242/toml-test-matrix/tree/master/scripts/rust-basic-toml

As of right now, there are 21 decoder failures and the decoder failures are preventing verifying the encoder, so the number of encoder failures is unknown. There are also 4 invalid cases that are accepted. See https://arp242.github.io/toml-test-matrix/output/rust-basic-toml.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant