Sha256: a759295b8dd85c1617932702869b0aabe4faf7f0d558b717c7bbe277b854f7cc

Contents?: true

Size: 1.21 KB

Versions: 289

Compression:

Stored size: 1.21 KB

Contents

extern crate sum_of_multiples;

use sum_of_multiples::*;

#[test]
fn multiples_one() {
    assert_eq!(0, sum_of_multiples(1, &vec![3, 5]))
}

#[test]
#[ignore]
fn multiples_two() {
    assert_eq!(3, sum_of_multiples(4, &vec![3, 5]))
}

#[test]
#[ignore]
fn multiples_three() {
    assert_eq!(23, sum_of_multiples(10, &vec![3, 5]))
}

#[test]
#[ignore]
fn multiples_four() {
    assert_eq!(2318, sum_of_multiples(100, &vec![3, 5]))
}

#[test]
#[ignore]
fn multiples_five() {
    assert_eq!(233168, sum_of_multiples(1000, &vec![3, 5]))
}

#[test]
#[ignore]
fn multiples_six() {
    assert_eq!(51, sum_of_multiples(20, &vec![7, 13, 17]))
}

#[test]
#[ignore]
fn multiples_seven() {
    assert_eq!(30, sum_of_multiples(15, &vec![4, 6]))
}

#[test]
#[ignore]
fn multiples_eight() {
    assert_eq!(4419, sum_of_multiples(150, &vec![5, 6, 8]))
}

#[test]
#[ignore]
fn multiples_nine() {
    assert_eq!(275, sum_of_multiples(51, &vec![5, 25]))
}

#[test]
#[ignore]
fn multiples_ten() {
    assert_eq!(2203160, sum_of_multiples(10000, &vec![43, 47]))
}

#[test]
#[ignore]
fn multiples_eleven() {
    assert_eq!(4950, sum_of_multiples(100, &vec![1]))
}

#[test]
#[ignore]
fn multiples_twelve() {
    assert_eq!(0, sum_of_multiples(10000, &vec![]))
}

Version data entries

289 entries across 289 versions & 1 rubygems

Version Path
trackler-2.2.1.12 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.11 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.10 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.9 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.8 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.7 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.6 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.5 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.4 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.3 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.2 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.1 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.0 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.0.6 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.0.5 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.0.4 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.0.3 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.0.2 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.0.1 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.0.0 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs