Sha256: 660b8413227f44e6ce9963f0cd7e6c7a6cb1b209c8a0d3be3db5428f2af1ef19
Contents?: true
Size: 903 Bytes
Versions: 69
Compression:
Stored size: 903 Bytes
Contents
if !System.get_env("EXERCISM_TEST_EXAMPLES") do Code.load_file("acronym.exs", __DIR__) end ExUnit.start() ExUnit.configure(exclude: :pending, trace: true) defmodule AcronymTest do use ExUnit.Case test "it produces acronyms from title case" do assert Acronym.abbreviate("Portable Networks Graphic") === "PNG" end @tag :pending test "it produces acronyms from lower case" do assert Acronym.abbreviate("Ruby on Rails") === "ROR" end @tag :pending test "it produces acronyms from inconsistent case" do assert Acronym.abbreviate("HyperText Markup Language") === "HTML" end @tag :pending test "it ignores punctuation" do assert Acronym.abbreviate("First in, First out") === "FIFO" end @tag :pending test "it produces acronyms ignoring punctuation and casing" do assert Acronym.abbreviate("Complementary Metal-Oxide semiconductor") === "CMOS" end end
Version data entries
69 entries across 69 versions & 1 rubygems