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.52 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.51 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.50 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.49 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.48 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.47 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.46 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.45 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.44 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.43 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.42 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.41 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.40 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.39 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.38 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.37 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.36 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.35 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.34 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.33 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs