Sha256: c825ee0085664f67e0c4836b665f7cc18bfcca9d45f477738d3be74a15caa6b8

Contents?: true

Size: 343 Bytes

Versions: 21

Compression:

Stored size: 343 Bytes

Contents

describe "Kernel.rand" do
  it "returns a float if no argument is passed" do
    # rand.should be_kind_of(Float)
  end

  it "returns an integer for an integer argument" do
    # rand(77).should be_kind_of(Integer)
  end

  it "returns a numeric in opal" do
    rand.should be_kind_of(Numeric)
    rand(77).should be_kind_of(Numeric)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
opal-0.3.41 spec/core/kernel/rand_spec.rb
opal-0.3.40 spec/core/kernel/rand_spec.rb
opal-0.3.39 spec/core/kernel/rand_spec.rb
opal-0.3.38 spec/core/kernel/rand_spec.rb
opal-0.3.37 spec/core/kernel/rand_spec.rb
opal-0.3.36 spec/core/kernel/rand_spec.rb
opal-0.3.35 spec/core/kernel/rand_spec.rb
opal-0.3.34 spec/core/kernel/rand_spec.rb
opal-0.3.33 spec/core/kernel/rand_spec.rb
opal-0.3.32 spec/core/kernel/rand_spec.rb
opal-0.3.31 spec/core/kernel/rand_spec.rb
opal-0.3.30 spec/core/kernel/rand_spec.rb
opal-0.3.29 spec/core/kernel/rand_spec.rb
opal-0.3.28 spec/core/kernel/rand_spec.rb
opal-0.3.27 spec/core/kernel/rand_spec.rb
opal-0.3.26 spec/core/kernel/rand_spec.rb
opal-0.3.25 spec/core/kernel/rand_spec.rb
opal-0.3.22 spec/core/kernel/rand_spec.rb
opal-0.3.21 test/core/kernel/rand_spec.rb
opal-0.3.20 test/core/kernel/rand_spec.rb