Skip to content

Commit

Permalink
Add a test for servo#139.
Browse files Browse the repository at this point in the history
Works now on trunk.

Closes servo#139
  • Loading branch information
emilio authored and dpc committed Oct 30, 2019
1 parent 607f036 commit 93a2681
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,13 @@ mod tests {
assert_eq!(v[..], ['a']);
}

// #139
#[test]
fn uninhabited() {
enum Void {}
let _sv = SmallVec::<[Void; 8]>::new();
}

#[test]
fn grow_spilled_same_size() {
let mut v: SmallVec<[u8; 2]> = SmallVec::new();
Expand Down

0 comments on commit 93a2681

Please sign in to comment.