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.171 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.170 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.169 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.167 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.166 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.165 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.164 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.163 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.162 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.161 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.160 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.159 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.158 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.157 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.156 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.155 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.154 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.153 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.152 tracks/rust/exercises/acronym/tests/acronym.rs
trackler-2.2.1.151 tracks/rust/exercises/acronym/tests/acronym.rs