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 authored and mbrubeck committed Nov 4, 2019
1 parent 9d8591e commit be00e0c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib.rs
Expand Up @@ -2352,6 +2352,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 be00e0c

Please sign in to comment.