Sha256: fb6b4694066438b3c16ac89de80d63e8104d40763c943018a75997b16611745b
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
require 'tres-raya' require 'test/unit' class TestTresRaya < Test::Unit::TestCase def setup # si se define una variable de instancia, el juego no se actualiza aleatoriamente porqu solo hay una end def teardown #nada, la memoria se libera automaticamente end def test_play score = [] 30.times do ter_obj = TresRaya::Game.new TresRaya::DumbPlayer, TresRaya::DumbPlayer score.push ter_obj.play end assert(score.uniq.length == 3, "score.uniq.length = #{score.uniq.length} score.length = #{score.length}") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tres-raya-0.0.3 | test/tc_tres_raya.rb |
tres-raya-0.0.2 | test/tc_tres_raya.rb |