X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/1da0a60f448820070d47333a7316364e009f203e..8ea54765a6dbdc22b1f99e5493eafb432210a7d8:/test/election_test.rb diff --git a/test/election_test.rb b/test/election_test.rb index e8a9c45..5b5664e 100644 --- a/test/election_test.rb +++ b/test/election_test.rb @@ -11,6 +11,11 @@ class TestElectionVote < Test::Unit::TestCase assert_equal( "C", PluralityVote.new(vote_array).result.winners[0] ) end + def test_plurality_nonstring + vote_array = [1,2,3,1,1,1,2,3] + assert_equal( 1, PluralityVote.new(vote_array).result.winners[0] ) + end + def test_approval vote_array = Array.new