Sha256: 0b471019c2ffb92ceaa56c6df656d6b4e6150c45690fdd09b550b6c00a244fd8

Contents?: true

Size: 833 Bytes

Versions: 163

Compression:

Stored size: 833 Bytes

Contents

extern crate acronym;

#[test]
fn basic() {
  assert_eq!(acronym::abbreviate("Portable Network Graphics"), "PNG");
}

#[test]
#[ignore]
fn lowercase_words() {
  assert_eq!(acronym::abbreviate("Ruby on Rails"), "ROR");
}

#[test]
#[ignore]
fn camelcase() {
    assert_eq!(acronym::abbreviate("HyperText Markup Language"), "HTML");
}

#[test]
#[ignore]
fn punctuation() {
    assert_eq!(acronym::abbreviate("First In, First Out"), "FIFO");
}

#[test]
#[ignore]
fn all_caps_words() {
    assert_eq!(acronym::abbreviate("PHP: Hypertext Preprocessor"), "PHP");
}

#[test]
#[ignore]
fn non_acronym_all_caps_word() {
    assert_eq!(acronym::abbreviate("GNU Image Manipulation Program"), "GIMP");
}

#[test]
#[ignore]
fn hyphenated() {
    assert_eq!(acronym::abbreviate("Complementary metal-oxide semiconductor"),
               "CMOS");
}

Version data entries

163 entries across 163 versions & 1 rubygems

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