diff options
author | Deokjin Kim <deokjin81.kim@samsung.com> | 2015-01-20 11:02:41 +0900 |
---|---|---|
committer | Deokjin Kim <deokjin81.kim@samsung.com> | 2015-01-20 11:02:41 +0900 |
commit | ee0ce0d8f4eecede189ee85cf51a64519ffa5c80 (patch) | |
tree | d563b117f264b305d5288caa00f4010f127e7c58 /components/util/smallvec.rs | |
parent | 80a6f0ae0880914f972b24a11216eed25d873576 (diff) | |
parent | ccf5f96fa91540ca73cfb24dd130d5124975fc6e (diff) | |
download | servo-ee0ce0d8f4eecede189ee85cf51a64519ffa5c80.tar.gz servo-ee0ce0d8f4eecede189ee85cf51a64519ffa5c80.zip |
Merge branch 'master' of https://github.com/servo/servo into font_style
Diffstat (limited to 'components/util/smallvec.rs')
-rw-r--r-- | components/util/smallvec.rs | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/components/util/smallvec.rs b/components/util/smallvec.rs index 60e22f25a70..e92d3d3eeba 100644 --- a/components/util/smallvec.rs +++ b/components/util/smallvec.rs @@ -531,7 +531,10 @@ pub mod tests { let mut v = SmallVec16::new(); v.push("hello".into_string()); v.push("there".into_string()); - assert_eq!(v.as_slice(), vec!["hello".into_string(), "there".into_string()].as_slice()); + assert_eq!(v.as_slice(), vec![ + "hello".into_string(), + "there".into_string(), + ].as_slice()); } #[test] @@ -541,7 +544,12 @@ pub mod tests { v.push("there".into_string()); v.push("burma".into_string()); v.push("shave".into_string()); - assert_eq!(v.as_slice(), vec!["hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string()].as_slice()); + assert_eq!(v.as_slice(), vec![ + "hello".into_string(), + "there".into_string(), + "burma".into_string(), + "shave".into_string(), + ].as_slice()); } #[test] @@ -556,7 +564,14 @@ pub mod tests { v.push("burma".into_string()); v.push("shave".into_string()); assert_eq!(v.as_slice(), vec![ - "hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string(), "hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string(), + "hello".into_string(), + "there".into_string(), + "burma".into_string(), + "shave".into_string(), + "hello".into_string(), + "there".into_string(), + "burma".into_string(), + "shave".into_string(), ].as_slice()); } } |