Sha256: d2beab5a01317c4b1b9775784d58f19280cf1a25a4e890f15faeb84e8fe45bcd

Contents?: true

Size: 875 Bytes

Versions: 45

Compression:

Stored size: 875 Bytes

Contents

# !/usr/bin/env ruby
require 'minitest/autorun'
require_relative 'diamond'

class DiamondTest < Minitest::Test
  def test_letter_a
    answer = Diamond.make_diamond('A')
    assert_equal "A\n", answer
  end

  def test_letter_c
    skip
    answer = Diamond.make_diamond('C')
    string = "  A  \n"\
             " B B \n"\
             "C   C\n"\
             " B B \n"\
             "  A  \n"
    assert_equal string, answer
  end

  def test_letter_e
    skip
    answer = Diamond.make_diamond('E')
    string = "    A    \n"\
             "   B B   \n"\
             "  C   C  \n"\
             " D     D \n"\
             "E       E\n"\
             " D     D \n"\
             "  C   C  \n"\
             "   B B   \n"\
             "    A    \n"
    assert_equal string, answer
  end

  def test_bookkeeping
    skip
    assert_equal 1, Bookkeeping::VERSION
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
trackler-2.1.0.53 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.52 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.51 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.50 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.49 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.48 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.47 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.46 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.45 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.44 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.43 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.42 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.41 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.40 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.39 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.38 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.37 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.36 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.34 tracks/ruby/exercises/diamond/diamond_test.rb
trackler-2.1.0.33 tracks/ruby/exercises/diamond/diamond_test.rb