mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix up and run unit tests.
This adds the subpackages to `./mach test-unit`.
This commit is contained in:
parent
76d1d78cc0
commit
7f6f072b02
6 changed files with 33 additions and 26 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue