Change pretty-exact to pp-exact

This commit is contained in:
Seo Sanghyeon 2013-02-08 02:56:49 +09:00
parent fa69739320
commit 683e7a45a6
4 changed files with 8 additions and 10 deletions

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-exact
// pp-exact
// actually this doesn't quite look how I want it to, but I can't
// get the prettyprinter to indent the long expr
@ -18,8 +18,8 @@ fn main() {
let y =
match x {
Some(_) =>
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" +
~"very" + ~"very" + ~"very" + ~"long" + ~"string",
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very"
+ ~"very" + ~"very" + ~"long" + ~"string",
None => ~"none"
};
assert y == ~"some(_)";

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-exact
// pp-exact
fn main() {
let x = Some(3);

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-exact
// pp-exact
fn main() {
let x = Some(3);

View File

@ -8,10 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-exact
// pp-exact
fn f(f: fn@(int)) { f(10) }
fn f(f: @fn(int)) { f(10) }
fn main() {
do f |i| { assert i == 10 }
}
fn main() { do f |i| { assert i == 10 } }