X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/0e05e46d80413a70fc4aa10bfabbbac048add5a8..63292ec6d1a01761de21b9d421970e498ba963cc:/test/election_test.rb?ds=inline 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