Sha256: ffe90f8be5a1c5f2d33a503ecd114622c2220bfc7de2b792625da8641bd67d99

Contents?: true

Size: 418 Bytes

Versions: 65

Compression:

Stored size: 418 Bytes

Contents

extern crate collatz_conjecture;

use collatz_conjecture::*;

#[test]
fn test_1() {
    assert_eq!(Ok(0), collatz(1));
}

#[test]
#[ignore]
fn test_16() {
    assert_eq!(Ok(4), collatz(16));
}

#[test]
#[ignore]
fn test_12() {
    assert_eq!(Ok(9), collatz(12));
}

#[test]
#[ignore]
fn test_1000000() {
    assert_eq!(Ok(152), collatz(1000000));
}

#[test]
#[ignore]
fn test_0() {
    assert!(collatz(0).is_err());
}

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
trackler-2.2.1.110 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.109 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.108 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.107 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.106 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.105 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.104 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.103 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.102 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.101 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.100 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.99 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.98 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.97 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.96 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.95 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.94 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.93 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.92 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs
trackler-2.2.1.91 tracks/rust/exercises/collatz-conjecture/tests/collatz-conjecture.rs