Sha256: e4ed05419952e4427e557e6b84e24913189f7ccbae4aa9a893879f1c7f15f712

Contents?: true

Size: 228 Bytes

Versions: 22

Compression:

Stored size: 228 Bytes

Contents

describe "Numeric#to_s when no base given" do
  it "returns self converted to a String using base 10" do
    255.to_s.should == '255'
    3.to_s.should == '3'
    0.to_s.should == '0'
    (-9002).to_s.should == '-9002'
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
opal-0.4.4 spec/rubyspec/core/numeric/to_s_spec.rb
opal-0.4.3 spec/rubyspec/core/numeric/to_s_spec.rb
opal-0.4.2 spec/rubyspec/core/numeric/to_s_spec.rb
opal-0.4.1 spec/rubyspec/core/numeric/to_s_spec.rb
opal-0.4.0 spec/rubyspec/core/numeric/to_s_spec.rb
opal-0.3.44 spec/rubyspec/core/numeric/to_s_spec.rb
opal-0.3.43 spec/rubyspec/core/numeric/to_s_spec.rb
opal-0.3.42 spec/core/numeric/to_s_spec.rb
opal-0.3.41 spec/core/numeric/to_s_spec.rb
opal-0.3.40 spec/core/numeric/to_s_spec.rb
opal-0.3.39 spec/core/numeric/to_s_spec.rb
opal-0.3.38 spec/core/numeric/to_s_spec.rb
opal-0.3.37 spec/core/numeric/to_s_spec.rb
opal-0.3.36 spec/core/numeric/to_s_spec.rb
opal-0.3.35 spec/core/numeric/to_s_spec.rb
opal-0.3.34 spec/core/numeric/to_s_spec.rb
opal-0.3.33 spec/core/numeric/to_s_spec.rb
opal-0.3.32 spec/core/numeric/to_s_spec.rb
opal-0.3.31 spec/core/numeric/to_s_spec.rb
opal-0.3.30 spec/core/numeric/to_s_spec.rb