summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d28df2a)
def test_borda
vote_array = Array.new
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("")}
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
assert_equal( "B", BordaVote.new(vote_array).result.winners[0] )
end