about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2013-11-26 06:15:45 +0100
committerFlorian Zeitz <florob@babelmonkeys.de>2013-11-27 23:36:20 +0100
commitdfe38dbca4b62132d7512f767bca6ebe6ddfe931 (patch)
tree2b29fb6610970340a22264acf8f5ecf8d872c3f5 /src/test
parentc234614950c8349607f08fab754057dfe047ca0c (diff)
downloadrust-dfe38dbca4b62132d7512f767bca6ebe6ddfe931.tar.gz
rust-dfe38dbca4b62132d7512f767bca6ebe6ddfe931.zip
Fix handling of upper/lowercase, and whitespace
Diffstat (limited to 'src/test')
-rw-r--r--src/test/pretty/block-comment-wchar.pp11
-rw-r--r--src/test/pretty/block-comment-wchar.rs5
2 files changed, 7 insertions, 9 deletions
diff --git a/src/test/pretty/block-comment-wchar.pp b/src/test/pretty/block-comment-wchar.pp
index c60cc1a36ca..15e6e52e3ba 100644
--- a/src/test/pretty/block-comment-wchar.pp
+++ b/src/test/pretty/block-comment-wchar.pp
@@ -51,7 +51,7 @@ fn f() {
       CR4+2:                         (should align)
     */
     /*
-    // (NEL deliberately omitted)
+      NEL4+2:                        (should align)
     */
     /*
       Ogham Space Mark 4+2:          (should align)
@@ -103,11 +103,10 @@ fn f() {
 fn main() {
     // Taken from http://www.unicode.org/Public/UNIDATA/PropList.txt
     let chars =
-        ['\x0A', '\x0B', '\x0C', '\x0D', '\x20',
-         // '\x85', // for some reason Rust thinks NEL isn't whitespace
-         '\xA0', '\u1680', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004',
-         '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200A', '\u2028',
-         '\u2029', '\u202F', '\u205F', '\u3000'];
+        ['\x0A', '\x0B', '\x0C', '\x0D', '\x20', '\x85', '\xA0', '\u1680',
+         '\u2000', '\u2001', '\u2002', '\u2003', '\u2004', '\u2005', '\u2006',
+         '\u2007', '\u2008', '\u2009', '\u200A', '\u2028', '\u2029', '\u202F',
+         '\u205F', '\u3000'];
     for c in chars.iter() {
         let ws = c.is_whitespace();
         println!("{:?} {:?}" , c , ws);
diff --git a/src/test/pretty/block-comment-wchar.rs b/src/test/pretty/block-comment-wchar.rs
index 52936da41b2..98b9fd05077 100644
--- a/src/test/pretty/block-comment-wchar.rs
+++ b/src/test/pretty/block-comment-wchar.rs
@@ -51,7 +51,7 @@ fn f() {
 



  CR4+2:                         (should align)
     */
     /*
-    // (NEL deliberately omitted)
+…………  NEL4+2:                        (should align)
     */
     /*
       Ogham Space Mark 4+2:          (should align)
@@ -97,8 +97,7 @@ fn f() {
 fn main() {
     // Taken from http://www.unicode.org/Public/UNIDATA/PropList.txt
     let chars =
-        ['\x0A', '\x0B', '\x0C', '\x0D', '\x20',
-         // '\x85', // for some reason Rust thinks NEL isn't whitespace
+        ['\x0A', '\x0B', '\x0C', '\x0D', '\x20', '\x85',
          '\xA0', '\u1680', '\u2000', '\u2001', '\u2002', '\u2003',
          '\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200A',
          '\u2028', '\u2029', '\u202F', '\u205F', '\u3000'];