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.113 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.111 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.110 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.109 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.108 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.107 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.106 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.105 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.104 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.103 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.102 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.101 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.100 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.99 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.98 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.97 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.96 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.95 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.94 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs
trackler-2.2.1.93 tracks/rust/exercises/sum-of-multiples/tests/sum-of-multiples.rs