velcro 0.5.4

Convenience macros for initializing vectors, hash maps and other Rust collections.
Documentation
1
2
3
4
5
6
7
8
//! Tests for https://github.com/peterjoel/velcro/issues/11
use velcro::vec;

#[test]
fn fixed_len_vec_should_accept_range() {
    let v = vec![..(1..=4); 4];
    assert_eq!(v, vec![1, 2, 3, 4]);
}