1 // This is meant as a test case for Issue 3961.
3 // Test via: rustc -Zunpretty normal src/test/pretty/block-comment-wchar.rs
6 // pp-exact:block-comment-wchar.pp
23 Spaced2: (prefixed so start of space aligns with comment)
26 Tabbed2: (more indented b/c *start* of space will align with comment)
29 Spaced6: (Alignment removed and realigning spaces inserted)
32 Tabbed4+2: (Alignment removed and realigning spaces inserted)
45 NEL4+2: (should align)
48 Ogham Space Mark 4+2: (should align)
51 Ogham Space Mark 4+2: (should align)
54 Four-per-em space 4+2: (should align)
58 Ogham Space Mark count 1: (should align)
59 Ogham Space Mark count 2: (should align)
60 Ogham Space Mark count 3: (should align)
61 Ogham Space Mark count 4: (should align)
62 Ogham Space Mark count 5: (should align)
63 Ogham Space Mark count 6: (should align)
64 Ogham Space Mark count 7: (should align)
65 Ogham Space Mark count 8: (should align)
66 Ogham Space Mark count 9: (should align)
67 Ogham Space Mark count A: (should align)
68 Ogham Space Mark count B: (should align)
69 Ogham Space Mark count C: (should align)
70 Ogham Space Mark count D: (should align)
71 Ogham Space Mark count E: (should align)
72 Ogham Space Mark count F: (should align)
81 Ogham Space Mark 6+2: compare B
86 Hello from another offset 6 with wchars establishing column offset
88 Ogham Space Mark 6+2: compare D
93 // Taken from https://www.unicode.org/Public/UNIDATA/PropList.txt
95 ['\x0A', '\x0B', '\x0C', '\x0D', '\x20', '\u{85}', '\u{A0}',
96 '\u{1680}', '\u{2000}', '\u{2001}', '\u{2002}', '\u{2003}',
97 '\u{2004}', '\u{2005}', '\u{2006}', '\u{2007}', '\u{2008}',
98 '\u{2009}', '\u{200A}', '\u{2028}', '\u{2029}', '\u{202F}',
99 '\u{205F}', '\u{3000}'];
100 for c in &chars { let ws = c.is_whitespace(); println!("{} {}", c, ws); }