Sha256: 6943d6a68e8635ef30ee2ffd599a41c60a26ef333db46ae9792244f91324d5b1

Contents?: true

Size: 567 Bytes

Versions: 1

Compression:

Stored size: 567 Bytes

Contents

require 'ta_te_ti'

require 'test/unit'

class JuegoTaTeTi < 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 = TaTeTi::Game.new TaTeTi::DumbPlayer, TaTeTi::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

1 entries across 1 versions & 1 rubygems

Version Path
ta-te-ti-0.0.2 test/tc_ta_te_ti.rb