diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-05-28 20:41:35 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-06-13 23:40:24 +0200 |
| commit | b03a0b27aa6fd0d2b8be4434c73ad45311e292fc (patch) | |
| tree | b9295210a42cd0c7e9bbfca4e49ce13c8210cd4a /src/test | |
| parent | 0f4d5c2134fb8ecbac02678eaf512ec13914a75d (diff) | |
| download | rust-b03a0b27aa6fd0d2b8be4434c73ad45311e292fc.tar.gz rust-b03a0b27aa6fd0d2b8be4434c73ad45311e292fc.zip | |
make pp file conform to actual output, noting some oddities along the way.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/pretty/block-comment-wchar.pp | 46 | ||||
| -rw-r--r-- | src/test/pretty/block-comment-wchar.rs | 19 |
2 files changed, 35 insertions, 30 deletions
diff --git a/src/test/pretty/block-comment-wchar.pp b/src/test/pretty/block-comment-wchar.pp index b591b83ee37..9c80057ccef 100644 --- a/src/test/pretty/block-comment-wchar.pp +++ b/src/test/pretty/block-comment-wchar.pp @@ -81,30 +81,36 @@ fn f() { Mongolian Vowel Sep count F: (should align) */ -/* */ /* - Hello from offset 6 - Space 6+2: compare A - Mongolian Vowel Separator 6+2: compare B - */ -/**/ /* - Hello from another offset 6 with wchars establishing column offset - Space 6+2: compare C - Mongolian Vowel Separator 6+2: compare D - */ + + + /* */ + + /* + Hello from offset 6 + Space 6+2: compare A + Mongolian Vowel Separator 6+2: compare B + */ + + /**/ + + /* + Hello from another offset 6 with wchars establishing column offset + Space 6+2: compare C + Mongolian Vowel Separator 6+2: compare D + */ } fn main() { // Taken from http://en.wikipedia.org/wiki/Whitespace_character - let chars = [ '\x0A', '\x0B', '\x0C', '\x0D', '\x20', - // '\x85', // for some reason Rust thinks NEL isn't whitespace - '\xA0', '\u1680', '\u180E', - '\u2000', '\u2001', '\u2002', '\u2003', - '\u2004', '\u2005', '\u2006', '\u2007', - '\u2008', '\u2009', '\u200A', - '\u2028', '\u2029', '\u202F', '\u205F', - '\u3000' - ]; + let chars = + ['\x0A', '\x0B', '\x0C', '\x0D', '\x20', + // '\x85', // for some reason Rust thinks NEL isn't whitespace + '\xA0', '\u1680', '\u180E', '\u2000', '\u2001', '\u2002', '\u2003', + '\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200A', + '\u2028', '\u2029', '\u202F', '\u205F', '\u3000']; + // <= bugs in pretty-printer? for vec::each(chars) |c| { - io::println(fmt!("%? %?", c, c.is_whitespace())); + let ws = c.is_whitespace(); + io::println(fmt!("%? %?" , c , ws)); } } diff --git a/src/test/pretty/block-comment-wchar.rs b/src/test/pretty/block-comment-wchar.rs index 421857850b5..a56fa91f39f 100644 --- a/src/test/pretty/block-comment-wchar.rs +++ b/src/test/pretty/block-comment-wchar.rs @@ -81,6 +81,7 @@ fn f() { Mongolian Vowel Sep count F: (should align) */ + /* */ /* Hello from offset 6 Space 6+2: compare A @@ -95,16 +96,14 @@ fn f() { fn main() { // Taken from http://en.wikipedia.org/wiki/Whitespace_character - let chars = [ '\x0A', '\x0B', '\x0C', '\x0D', '\x20', - // '\x85', // for some reason Rust thinks NEL isn't whitespace - '\xA0', '\u1680', '\u180E', - '\u2000', '\u2001', '\u2002', '\u2003', - '\u2004', '\u2005', '\u2006', '\u2007', - '\u2008', '\u2009', '\u200A', - '\u2028', '\u2029', '\u202F', '\u205F', - '\u3000' - ]; + let chars = + ['\x0A', '\x0B', '\x0C', '\x0D', '\x20', + // '\x85', // for some reason Rust thinks NEL isn't whitespace + '\xA0', '\u1680', '\u180E', '\u2000', '\u2001', '\u2002', '\u2003', + '\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200A', + '\u2028', '\u2029', '\u202F', '\u205F', '\u3000']; for vec::each(chars) |c| { - io::println(fmt!("%? %?", c, c.is_whitespace())); + let ws = c.is_whitespace(); + io::println(fmt!("%? %?", c , ws)); // <= bugs in pretty-printer? } } |
