Sha256: 5b94d8bd0e4b0aca8fa66f96a3342e4f91a3facf257be195ceeaa02f49628f7e

Contents?: true

Size: 669 Bytes

Versions: 11

Compression:

Stored size: 669 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  
\sB B 
 C   C
\sB B 
\s A  
    """
  end

  @tag :pending
  test "letter E" do
    shape = Diamond.build_shape(?E)
    assert shape == """
\s   A    
\s  B B   
\s C   C  
\sD     D 
 E       E
\sD     D 
\s C   C  
\s  B B   
\s   A    
    """
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
trackler-2.0.0.1 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-2.0.0.0 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.4.1 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.4.0 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.3.0 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.2.1 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.2.0 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.1.2 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.1.1 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.1.0 tracks/elixir/exercises/diamond/diamond_test.exs
trackler-1.0.0.1 tracks/elixir/exercises/diamond/diamond_test.exs