Sha256: f423002dd94c75b42cd7441305789abd3f78aa48682d29693e7213e457d7b116

Contents?: true

Size: 830 Bytes

Versions: 291

Compression:

Stored size: 830 Bytes

Contents

require "spec"
require "../src/*"

describe "Acronym" do
  it "does basic" do
    Acronym.abbreviate("Portable Network Graphics").should eq("PNG")
  end

  pending "does lowercase words" do
    Acronym.abbreviate("Ruby on Rails").should eq("ROR")
  end

  pending "does camelcase" do
    Acronym.abbreviate("HyperText Markup Language").should eq("HTML")
  end

  pending "does punctuation" do
    Acronym.abbreviate("First In, First Out").should eq("FIFO")
  end

  pending "does all caps words" do
    Acronym.abbreviate("PHP: Hypertext Preprocessor").should eq("PHP")
  end

  pending "does non-acronym all caps word" do
    Acronym.abbreviate("GNU Image Manipulation Program").should eq("GIMP")
  end

  pending "does hyphenated" do
    Acronym.abbreviate("Complementary metal-oxide semiconductor").should eq("CMOS")
  end
end

Version data entries

291 entries across 291 versions & 1 rubygems

Version Path
trackler-2.2.1.12 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.11 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.10 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.9 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.8 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.7 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.6 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.5 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.4 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.3 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.2 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.1 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.1.0 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.0.6 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.0.5 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.0.4 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.0.3 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.0.2 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.0.1 tracks/crystal/exercises/acronym/spec/acronym_spec.cr
trackler-2.2.0.0 tracks/crystal/exercises/acronym/spec/acronym_spec.cr