LeopoldArkham / Molten

[WIP] Molten - Style-preserving TOML parser.
Apache License 2.0
40 stars 8 forks source link

Remove the dependency on nightly for testing #43

Closed jeremydavis519 closed 6 years ago

jeremydavis519 commented 6 years ago

This PR fixes #36 by creating macro_rules! macros that do roughly the same thing as test-case-derive's #[test-case] attributes do. The tests still look the same when run, and I've tried to keep the process of adding tests roughly the same as it was. I did get rid of the HashMap of test functions in tests/reconstruction.rs, since it's no longer needed, so one step has been removed.

I've also changed .travis.yml so that it runs the tests in all three channels (stable, beta, and nightly) but doesn't fail the whole build if nightly fails. So when the nightly compiler has incompatible changes, we'll be able to react to them but won't have to respond before doing anything else.

LeopoldArkham commented 6 years ago

Awesome, thanks!