Skip to content

Commit

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

Closes #139
  • Loading branch information
emilio committed Oct 19, 2019
1 parent bef9925 commit 99be50b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib.rs
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 99be50b

Please sign in to comment.