projects
/
rubyvote
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a number of improvements
[rubyvote]
/
test
/
election_test.rb
diff --git
a/test/election_test.rb
b/test/election_test.rb
index 2afab27475f6c38b1a7d1c01ed8ad2bb02d2f1ed..26d8b917bd548c686ef7e0f20a31128b6ff8e81f 100644
(file)
--- 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]
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
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]
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
end
def test_approval
Benjamin Mako Hill
||
Want to submit a patch?