diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-10-03 09:57:26 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-10-03 09:57:26 -0600 |
commit | d4e977a2be1f1fea81c32d1f7024b228cb161966 (patch) | |
tree | 95cb2d618f151e1e108838113ba71e93276b4850 /components/util/smallvec.rs | |
parent | a2531cd8aa0463e0941229b2f89f1433ad5b5e5e (diff) | |
parent | 7f6f072b02a50a609ff03c4b095476c83ff4d60e (diff) | |
download | servo-d4e977a2be1f1fea81c32d1f7024b228cb161966.tar.gz servo-d4e977a2be1f1fea81c32d1f7024b228cb161966.zip |
auto merge of #3566 : metajack/servo/fixup-unit-tests, r=mbrubeck
This adds the subpackages to `./mach test-unit`.
Diffstat (limited to 'components/util/smallvec.rs')
-rw-r--r-- | components/util/smallvec.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/util/smallvec.rs b/components/util/smallvec.rs index 998f8ef1d57..5185c4ee521 100644 --- a/components/util/smallvec.rs +++ b/components/util/smallvec.rs @@ -498,7 +498,7 @@ pub mod tests { let mut v = SmallVec16::new(); v.push("hello".to_string()); v.push("there".to_string()); - assert_eq!(v.as_slice(), &["hello".to_string(), "there".to_string()]); + assert_eq!(v.as_slice(), vec!["hello".to_string(), "there".to_string()].as_slice()); } #[test] @@ -508,7 +508,7 @@ pub mod tests { v.push("there".to_string()); v.push("burma".to_string()); v.push("shave".to_string()); - assert_eq!(v.as_slice(), &["hello".to_string(), "there".to_string(), "burma".to_string(), "shave".to_string()]); + assert_eq!(v.as_slice(), vec!["hello".to_string(), "there".to_string(), "burma".to_string(), "shave".to_string()].as_slice()); } #[test] @@ -522,9 +522,9 @@ pub mod tests { v.push("there".to_string()); v.push("burma".to_string()); v.push("shave".to_string()); - assert_eq!(v.as_slice(), &[ + assert_eq!(v.as_slice(), vec![ "hello".to_string(), "there".to_string(), "burma".to_string(), "shave".to_string(), "hello".to_string(), "there".to_string(), "burma".to_string(), "shave".to_string(), - ]); + ].as_slice()); } } |