Sha256: 8c900f77e563cf05fc796ed3f908eafbf601e1e9efa102eed996f9aad0eff7b3

Contents?: true

Size: 1.66 KB

Versions: 396

Compression:

Stored size: 1.66 KB

Contents

extern crate roman_numerals;

use roman_numerals::*;

#[test]
fn test_one() {
    assert_eq!("I", Roman::from(1).to_string());
}

#[test]
#[ignore]
fn test_two() {
    assert_eq!("II", Roman::from(2).to_string());
}

#[test]
#[ignore]
fn test_three() {
    assert_eq!("III", Roman::from(3).to_string());
}

#[test]
#[ignore]
fn test_four() {
    assert_eq!("IV", Roman::from(4).to_string());
}

#[test]
#[ignore]
fn test_five() {
    assert_eq!("V", Roman::from(5).to_string());
}

#[test]
#[ignore]
fn test_six() {
    assert_eq!("VI", Roman::from(6).to_string());
}

#[test]
#[ignore]
fn test_nine() {
    assert_eq!("IX", Roman::from(9).to_string());
}

#[test]
#[ignore]
fn test_twenty_seven() {
    assert_eq!("XXVII", Roman::from(27).to_string());
}

#[test]
#[ignore]
fn test_forty_eight() {
    assert_eq!("XLVIII", Roman::from(48).to_string());
}

#[test]
#[ignore]
fn test_fifty_nine() {
    assert_eq!("LIX", Roman::from(59).to_string());
}

#[test]
#[ignore]
fn test_ninety_three() {
    assert_eq!("XCIII", Roman::from(93).to_string());
}

#[test]
#[ignore]
fn test_141() {
    assert_eq!("CXLI", Roman::from(141).to_string());
}

#[test]
#[ignore]
fn test_163() {
    assert_eq!("CLXIII", Roman::from(163).to_string());
}

#[test]
#[ignore]
fn test_402() {
    assert_eq!("CDII", Roman::from(402).to_string());
}

#[test]
#[ignore]
fn test_575() {
    assert_eq!("DLXXV", Roman::from(575).to_string());
}

#[test]
#[ignore]
fn test_911() {
    assert_eq!("CMXI", Roman::from(911).to_string());
}

#[test]
#[ignore]
fn test_1024() {
    assert_eq!("MXXIV", Roman::from(1024).to_string());
}

#[test]
#[ignore]
fn test_3000() {
    assert_eq!("MMM", Roman::from(3000).to_string());
}

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.158 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.157 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.156 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.155 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.154 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.153 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.152 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.151 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.150 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.149 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.148 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.147 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.146 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.145 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.144 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.143 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.142 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.141 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs
trackler-2.2.1.140 tracks/rust/exercises/roman-numerals/tests/roman-numerals.rs