Sha256: 06ae968d52f55a7053c031d9ae99c80b1ea2f237632cb6be07557da9dcfaae37

Contents?: true

Size: 916 Bytes

Versions: 226

Compression:

Stored size: 916 Bytes

Contents

extern crate difference_of_squares as squares;

#[test]
fn test_square_of_sum_1() {
    assert_eq!(1, squares::square_of_sum(1));
}

#[test]
#[ignore]
fn test_square_of_sum_5() {
    assert_eq!(225, squares::square_of_sum(5));
}

#[test]
#[ignore]
fn test_square_of_sum_100() {
    assert_eq!(25502500, squares::square_of_sum(100));
}

#[test]
#[ignore]
fn test_sum_of_squares_1() {
    assert_eq!(1, squares::sum_of_squares(1));
}

#[test]
#[ignore]
fn test_sum_of_squares_5() {
    assert_eq!(55, squares::sum_of_squares(5));
}

#[test]
#[ignore]
fn test_sum_of_squares_100() {
    assert_eq!(338350, squares::sum_of_squares(100));
}

#[test]
#[ignore]
fn test_difference_1() {
    assert_eq!(0, squares::difference(1));
}

#[test]
#[ignore]
fn test_difference_5() {
    assert_eq!(170, squares::difference(5));
}

#[test]
#[ignore]
fn test_difference_100() {
    assert_eq!(25164150, squares::difference(100));
}

Version data entries

226 entries across 226 versions & 1 rubygems

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