Add dedicated pretty-printer tests with new pp-exact directive
Add a new src/test/pretty directory to hold just source files for testing the pretty-printer. Add a new pp-exact directive. When this directive is followed by a file name it specifies a file containing the output that the pretty-printer should generate. When pp-exact is not followed by a filename it says that the file should pretty-print as written.
This commit is contained in:
parent
eea888af25
commit
0fbb6782bb
7 changed files with 86 additions and 12 deletions
3
src/test/pretty/example2.pp
Normal file
3
src/test/pretty/example2.pp
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// pp-exact:example2.pp
|
||||
|
||||
fn main() { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue