Sha256: d008053083a98d73f0a125896740e90c388618f6a2af014149656749276f7d58

Contents?: true

Size: 668 Bytes

Versions: 106

Compression:

Stored size: 668 Bytes

Contents

extern crate series;
use series::*;

#[test]
fn test_with_zero_length() {
    let expected = vec!["".to_string(); 6];
    assert_eq!(series("92017", 0), expected);
}

#[test]
#[ignore]
fn test_with_length_2() {
    let expected = vec![
        "92".to_string(),
        "20".to_string(),
        "01".to_string(),
        "17".to_string(),
    ];
    assert_eq!(series("92017", 2), expected);
}

#[test]
#[ignore]
fn test_with_numbers_length() {
    let expected = vec!["92017".to_string()];
    assert_eq!(series("92017", 5), expected);
}

#[test]
#[ignore]
fn test_too_long() {
    let expected: Vec<String> = vec![];
    assert_eq!(series("92017", 6), expected);
}

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.179 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.178 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.177 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.176 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.175 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.174 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.173 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.172 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.171 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.170 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.169 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.167 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.166 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.165 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.164 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.163 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.162 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.161 tracks/rust/exercises/series/tests/series.rs
trackler-2.2.1.160 tracks/rust/exercises/series/tests/series.rs