Try to adopt 1.24 as the CI version

This would allow our crate to be used as a dependency of the `unicode-segmentation` crate.
This commit is contained in:
Lokathor
2020-01-06 20:28:09 -07:00
parent c063024184
commit c8bd5cc2b2
5 changed files with 71 additions and 33 deletions
+4 -2
View File
@@ -1,7 +1,9 @@
#![allow(bad_style)]
extern crate tinyvec;
use tinyvec::*;
extern crate core;
use core::ops::Deref;
#[test]
@@ -9,12 +11,12 @@ fn TinyVec_push_pop() {
let mut tv = TinyVec::new();
assert_eq!(tv.pop(), None);
tv.push(5_i32);
assert_eq!(tv.pop(), Some(5_i32));
assert_eq!(tv.len(), 0);
for i in 0 .. 10 {
for i in 0..10 {
tv.push(i);
}
assert_eq!(tv.len(), 10);