Sha256: e9dbebb53ea053bbdf541970c0a05fe1ca00c44f2a9f5484f2d85832ed67a9e8

Contents?: true

Size: 852 Bytes

Versions: 69

Compression:

Stored size: 852 Bytes

Contents

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

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

defmodule DiamondTest do
  use ExUnit.Case

  # @tag :pending
  test "letter A" do
    shape = Diamond.build_shape(?A)
    assert shape == "A\n"
  end

  @tag :pending
  test "letter C" do
    shape = Diamond.build_shape(?C)

    assert shape == """
           \s A \s
           \sB B\s
           C   C
           \sB B\s
           \s A \s
           """
  end

  @tag :pending
  test "letter E" do
    shape = Diamond.build_shape(?E)

    assert shape == """
           \s   A   \s
           \s  B B  \s
           \s C   C \s
           \sD     D\s
           E       E
           \sD     D\s
           \s C   C \s
           \s  B B  \s
           \s   A   \s
           """
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

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