Sha256: 82eb38920658d8aa84fa007c5d0f336fee4c8857cb4d6051bf07f81eadfb3361

Contents?: true

Size: 900 Bytes

Versions: 326

Compression:

Stored size: 900 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

326 entries across 326 versions & 1 rubygems

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