vickenty / lang-c

Lightweight C parser for Rust
Apache License 2.0
202 stars 30 forks source link

Improve tests #29

Closed vickenty closed 4 years ago

vickenty commented 4 years ago

Extract test cases from tests.rs to separate files, and run them programmatically.

AST differences are now presented in two columns and in a more concise format, which should make inspecting failures easier. Writing test cases should be simplified with the update mode, where AST is automatically dumped into a test case file.