projects
/
rubyvote
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix problem with a [nil] result being taken as having a winner; add testcases
[rubyvote]
/
test
/
positional_test.rb
diff --git
a/test/positional_test.rb
b/test/positional_test.rb
index 76be74d7c55e2b88c32b6874e888e3d46a00e495..bb81c7ec7109729c9652266aa3ed65bc67a0dba3 100644
(file)
--- a/
test/positional_test.rb
+++ b/
test/positional_test.rb
@@
-9,6
+9,7
@@
class TestPositionalVote < Test::Unit::TestCase
def test_borda_empty
vote_array = Array.new
assert_nil BordaVote.new(vote_array).result.winners[0]
+ assert_equal(false, BordaVote.new(vote_array).result.winner?)
end
def test_borda
Benjamin Mako Hill
||
Want to submit a patch?