about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2015-02-24 21:15:45 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2015-02-24 21:15:45 +0300
commit2807a1ce0255ce98415ebe6f65eb589d0f2f894b (patch)
tree879116c1d285754e3e3779817211b816849902b7 /src/libstd/sys
parentdccdde4007c191aa8b8d9cfffb0c7d3509fa675e (diff)
downloadrust-2807a1ce0255ce98415ebe6f65eb589d0f2f894b.tar.gz
rust-2807a1ce0255ce98415ebe6f65eb589d0f2f894b.zip
Use arrays instead of vectors in tests
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/common/wtf8.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs
index 9119a3c60d8..fb9d6fef1fa 100644
--- a/src/libstd/sys/common/wtf8.rs
+++ b/src/libstd/sys/common/wtf8.rs
@@ -1202,11 +1202,11 @@ mod tests {
             string.code_points().map(|c| c.to_char()).collect::<Vec<_>>()
         }
         let mut string = Wtf8Buf::from_str("é ");
-        assert_eq!(cp(&string), vec![Some('é'), Some(' ')]);
+        assert_eq!(cp(&string), [Some('é'), Some(' ')]);
         string.push(c(0xD83D));
-        assert_eq!(cp(&string), vec![Some('é'), Some(' '), None]);
+        assert_eq!(cp(&string), [Some('é'), Some(' '), None]);
         string.push(c(0xDCA9));
-        assert_eq!(cp(&string), vec![Some('é'), Some(' '), Some('💩')]);
+        assert_eq!(cp(&string), [Some('é'), Some(' '), Some('💩')]);
     }
 
     #[test]