Sha256: aa85c8fcd9fd32e1f9ca781373837f29477ba5956be2179af57c61abcc7c1d20

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

require 'test_helper'

class HazardTest < Minitest::Test

  def test_dice

    Kernel.stubs( :rand ).returns( 6 )

    assert_equal 6, Hazard.d6

    assert_equal 12, Hazard.r2d6
    assert_equal 12, Hazard._2d6
    assert_equal 12, Hazard.m2d6
    assert_equal 12, Hazard.d2d6
    assert_equal 18, Hazard.d3d6

    assert_equal RolledDice.new([6, 6 ] ), Hazard.s2d6

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hazard-1.1.0 test/hazard_test.rb
hazard-1.0.4 test/hazard_test.rb