Sha256: ec7124c383c6d8892a0a85e1ba3614472f9f8849ec234e3aa447600105b52b92

Contents?: true

Size: 202 Bytes

Versions: 27

Compression:

Stored size: 202 Bytes

Contents

require 'spec_helper'

describe 'Number#to_s' do
  it "should convert 0.0 to '0.0'" do
    0.0.to_s.should == '0'
  end

  it "should convert -0.0 to '-0.0'" do
    -0.0.to_s.should == '-0.0'
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 spec/opal/core/number/to_s_spec.rb
opal-1.8.2 spec/opal/core/number/to_s_spec.rb
opal-1.8.1 spec/opal/core/number/to_s_spec.rb
opal-1.8.0 spec/opal/core/number/to_s_spec.rb
opal-1.8.0.beta1 spec/opal/core/number/to_s_spec.rb
opal-1.7.4 spec/opal/core/number/to_s_spec.rb
opal-1.8.0.alpha1 spec/opal/core/number/to_s_spec.rb
opal-1.7.3 spec/opal/core/number/to_s_spec.rb
opal-1.7.2 spec/opal/core/number/to_s_spec.rb
opal-1.7.1 spec/opal/core/number/to_s_spec.rb
opal-1.7.0 spec/opal/core/number/to_s_spec.rb
opal-1.7.0.rc1 spec/opal/core/number/to_s_spec.rb
opal-1.6.1 spec/opal/core/number/to_s_spec.rb
opal-1.6.0 spec/opal/core/number/to_s_spec.rb
opal-1.6.0.rc1 spec/opal/core/number/to_s_spec.rb
opal-1.6.0.alpha1 spec/opal/core/number/to_s_spec.rb
opal-1.5.1 spec/opal/core/number/to_s_spec.rb
opal-1.5.0 spec/opal/core/number/to_s_spec.rb
opal-1.5.0.rc1 spec/opal/core/number/to_s_spec.rb
opal-1.4.1 spec/opal/core/number/to_s_spec.rb