X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/1da0a60f448820070d47333a7316364e009f203e..ebb1c7006d50d8761066bcd5d0e6bbc347b9e0c8:/test/positional_test.rb diff --git a/test/positional_test.rb b/test/positional_test.rb index a43709d..1dc6c12 100644 --- a/test/positional_test.rb +++ b/test/positional_test.rb @@ -8,11 +8,12 @@ class TestPositionalVote < Test::Unit::TestCase def test_borda vote_array = Array.new + 2.times {vote_array << "BAC".split("")} 3.times {vote_array << "ABC".split("")} 3.times {vote_array << "CBA".split("")} - 2.times {vote_array << "BAC".split("")} - + assert_equal( "B", BordaVote.new(vote_array).result.winners[0] ) end + end