Class: Solitaire::TestSuit

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/quiz1/t/solutions/Moses Hohman/test_deck.rb

Instance Method Summary collapse

Instance Method Details

#test_by_value_clubsObject



134
135
136
# File 'lib/quiz1/t/solutions/Moses Hohman/test_deck.rb', line 134

def test_by_value_clubs
	assert_equal("clubs", Suit.by_value(1).name)
end

#test_by_value_heartsObject



138
139
140
# File 'lib/quiz1/t/solutions/Moses Hohman/test_deck.rb', line 138

def test_by_value_hearts
	assert_equal("hearts", Suit.by_value(27).name)
end

#test_heartsObject



142
143
144
# File 'lib/quiz1/t/solutions/Moses Hohman/test_deck.rb', line 142

def test_hearts
	assert_equal("hearts", Suit::HEARTS.name)
end