X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/0e05e46d80413a70fc4aa10bfabbbac048add5a8..39441f5a3033c1eb4a5e0d4beeed2cc17a3e20cd:/test/election_test.rb diff --git a/test/election_test.rb b/test/election_test.rb index 2afab27..26d8b91 100644 --- a/test/election_test.rb +++ b/test/election_test.rb @@ -8,6 +8,7 @@ class TestElectionVote < Test::Unit::TestCase def test_plurality_empty vote_array = [] assert_nil PluralityVote.new(vote_array).result.winners[0] + assert_equal(false, PluralityVote.new(vote_array).result.winner?) end def test_plurality @@ -29,6 +30,7 @@ class TestElectionVote < Test::Unit::TestCase def test_approval_empty vote_array = [] assert_nil ApprovalVote.new(vote_array).result.winners[0] + assert_equal(false, ApprovalVote.new(vote_array).result.winner?) end def test_approval