Sha256: 643d6d4c84d95e5a0119689148ca37f862cd87c69b7d5d12f2adf018307cd5cb

Contents?: true

Size: 1013 Bytes

Versions: 69

Compression:

Stored size: 1013 Bytes

Contents

if !System.get_env("EXERCISM_TEST_EXAMPLES") do
  Code.load_file("isogram.exs", __DIR__)
end

ExUnit.start()
ExUnit.configure(exclude: :pending, trace: true)

defmodule IsogramTest do
  use ExUnit.Case

  test "isogram lowercase" do
    assert Isogram.isogram?("subdermatoglyphic")
  end

  @tag :pending
  test "not isogram lowercase " do
    refute Isogram.isogram?("eleven")
  end

  @tag :pending
  test "isogram uppercase" do
    assert Isogram.isogram?("DEMONSTRABLY")
  end

  @tag :pending
  test "not isogram uppercase" do
    refute Isogram.isogram?("ALPHABET")
  end

  @tag :pending
  test "isogram with dash" do
    assert Isogram.isogram?("hjelmqvist-gryb-zock-pfund-wax")
  end

  @tag :pending
  test "not isogram with dash" do
    refute Isogram.isogram?("twenty-five")
  end

  @tag :pending
  test "phrase is isogram" do
    assert Isogram.isogram?("emily jung schwartzkopf")
  end

  @tag :pending
  test "phrase is not isogram" do
    refute Isogram.isogram?("the quick brown fox")
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.158 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.157 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.156 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.155 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.154 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.153 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.152 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.151 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.150 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.149 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.148 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.147 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.146 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.145 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.144 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.143 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.142 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.141 tracks/elixir/exercises/isogram/isogram_test.exs
trackler-2.2.1.140 tracks/elixir/exercises/isogram/isogram_test.exs