Open chappertron opened 2 months ago
While helpful, this may require writing a whole new testing harness.
Instead, it would probably be better to use the insta crate, which will test against debug output.
Could also be used for integration tests of the CLI output.
Testing the AST is quite tricky, especially after changes to the syntax.
Adding a way to write as s-exp or maybe even rust-analyzer's RAST syntax will make testing easier, because (providing writing out is correct) we can assert that the syntax trees are the same without having to write the full complicated type tree.