parent
a5979be9fe
commit
b36ed7d2ed
22 changed files with 291 additions and 1 deletions
|
|
@ -365,6 +365,14 @@ fn test_drain() {
|
|||
assert_eq!(t, "");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_extend_ref() {
|
||||
let mut a = "foo".to_string();
|
||||
a.extend(&['b', 'a', 'r']);
|
||||
|
||||
assert_eq!(&a, "foobar");
|
||||
}
|
||||
|
||||
#[bench]
|
||||
fn bench_with_capacity(b: &mut Bencher) {
|
||||
b.iter(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue