Sha256: 48755a3e5e7c42b32426dbfdbe4e8a343102e9bf35166f67f18162df47b0b793
Contents?: true
Size: 834 Bytes
Versions: 211
Compression:
Stored size: 834 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
211 entries across 211 versions & 1 rubygems