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