diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-01 14:10:59 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-02 10:39:13 -0700 |
| commit | 0fbb6782bbdbe8d3bd703ca46110c989aec3e2ff (patch) | |
| tree | e8658c0147ae9734bf6b963b76eedffc7990d365 /src/test/pretty/example2.pp | |
| parent | eea888af253083d658319382352181df7f255c03 (diff) | |
| download | rust-0fbb6782bbdbe8d3bd703ca46110c989aec3e2ff.tar.gz rust-0fbb6782bbdbe8d3bd703ca46110c989aec3e2ff.zip | |
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.
Diffstat (limited to 'src/test/pretty/example2.pp')
| -rw-r--r-- | src/test/pretty/example2.pp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/pretty/example2.pp b/src/test/pretty/example2.pp new file mode 100644 index 00000000000..67ab4bf12a7 --- /dev/null +++ b/src/test/pretty/example2.pp @@ -0,0 +1,3 @@ +// pp-exact:example2.pp + +fn main() { } \ No newline at end of file |
