* [mk_rate]
- gsl library may be provided as a gem
+ * test/TC_floodgate.rb
+ - Improved randomness check so that it works on Ruby 2.0.0 as well
2013-11-04 Daigo Moriwaki <daigo at debian dot org>
def test_match_odd
players = [@a, @b, @c]
@pairing.match(players)
- assert_equal([@a, @b], players)
+ assert_equal(2, players.size)
+ assert(players[0] != players[1])
end
end
def test_match
players = [@a, @b, @c]
@pairing.match(players)
- assert_equal([@b,@a,@c], players)
+ assert_equal(3, players.size)
+ assert(players.include? @a)
+ assert(players.include? @b)
+ assert(players.include? @c)
end
end