Sha256: 78a846ac54035af3580af67df2a7aa5d907ee5c6738572c4d38d70e23c1b716a

Contents?: true

Size: 1.7 KB

Versions: 69

Compression:

Stored size: 1.7 KB

Contents

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

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

defmodule PangramTest do
  use ExUnit.Case

  # @tag :pending
  test "empty sentence" do
    refute Pangram.pangram?("")
  end

  @tag :pending
  test "pangram with only lower case" do
    assert Pangram.pangram?("the quick brown fox jumps over the lazy dog")
  end

  @tag :pending
  test "missing character 'x'" do
    refute Pangram.pangram?("a quick movement of the enemy will jeopardize five gunboats")
  end

  @tag :pending
  test "another missing character 'x'" do
    refute Pangram.pangram?("the quick brown fish jumps over the lazy dog")
  end

  @tag :pending
  test "pangram with underscores" do
    assert Pangram.pangram?("the_quick_brown_fox_jumps_over_the_lazy_dog")
  end

  @tag :pending
  test "pangram with numbers" do
    assert Pangram.pangram?("the 1 quick brown fox jumps over the 2 lazy dogs")
  end

  @tag :pending
  test "missing letters replaced by numbers" do
    refute Pangram.pangram?("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog")
  end

  @tag :pending
  test "pangram with mixed case and punctuation" do
    assert Pangram.pangram?("Five quacking Zephyrs jolt my wax bed.")
  end

  @tag :pending
  test "pangram with non ascii characters" do
    assert Pangram.pangram?("Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.")
  end

  @tag :pending
  test "pangram in alphabet other than ASCII" do
    refute Pangram.pangram?(
             "Широкая электрификация южных губерний даст мощный толчок подъёму сельского хозяйства."
           )
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.179 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.178 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.177 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.176 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.175 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.174 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.173 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.172 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.171 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.170 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.169 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.167 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.166 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.165 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.164 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.163 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.162 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.161 tracks/elixir/exercises/pangram/pangram_test.exs
trackler-2.2.1.160 tracks/elixir/exercises/pangram/pangram_test.exs