]>
git.proxmox.com Git - rustc.git/blob - src/test/pretty/block-comment-wchar.rs
1 // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // This is meant as a test case for Issue 3961.
13 // Test via: rustc --pretty normal src/test/pretty/block-comment-wchar.rs
16 // pp-exact:block-comment-wchar.pp
33 Spaced2: (prefixed so start of space aligns with comment)
36 Tabbed2: (more indented b/c *start* of space will align with comment)
39 Spaced6: (Alignment removed and realigning spaces inserted)
42 Tabbed4+2: (Alignment removed and realigning spaces inserted)
46 \v\v\v\v VT4+2: (should align)
49 \f\f\f\f FF4+2: (should align)
55 \85\85\85\85 NEL4+2: (should align)
58 Ogham Space Mark 4+2: (should align)
61 Ogham Space Mark 4+2: (should align)
64 Four-per-em space 4+2: (should align)
68 Ogham Space Mark count 1: (should align)
69 Ogham Space Mark count 2: (should align)
70 Ogham Space Mark count 3: (should align)
71 Ogham Space Mark count 4: (should align)
72 Ogham Space Mark count 5: (should align)
73 Ogham Space Mark count 6: (should align)
74 Ogham Space Mark count 7: (should align)
75 Ogham Space Mark count 8: (should align)
76 Ogham Space Mark count 9: (should align)
77 Ogham Space Mark count A: (should align)
78 Ogham Space Mark count B: (should align)
79 Ogham Space Mark count C: (should align)
80 Ogham Space Mark count D: (should align)
81 Ogham Space Mark count E: (should align)
82 Ogham Space Mark count F: (should align)
89 Ogham Space Mark 6+2: compare B
92 Hello from another offset 6 with wchars establishing column offset
94 Ogham Space Mark 6+2: compare D
99 // Taken from http://www.unicode.org/Public/UNIDATA/PropList.txt
101 ['
\x0A'
, '
\x0B'
, '
\x0C'
, '
\x0D'
, '
\x20'
, '
\u{85}'
, '
\u{A0}'
,
102 '
\u{1680}'
, '
\u{2000}'
, '
\u{2001}'
, '
\u{2002}'
, '
\u{2003}'
,
103 '
\u{2004}'
, '
\u{2005}'
, '
\u{2006}'
, '
\u{2007}'
, '
\u{2008}'
,
104 '
\u{2009}'
, '
\u{200A}'
, '
\u{2028}'
, '
\u{2029}'
, '
\u{202F}'
,
105 '
\u{205F}'
, '
\u{3000}'
];
107 let ws
= c
.is_whitespace();
108 println
!("{} {}", c
, ws
);