Sha256: 2709c94c85bb14252f184398a71cc22396bc26f16bda60b16684fafdbe18e5c8

Contents?: true

Size: 173 Bytes

Versions: 50

Compression:

Stored size: 173 Bytes

Contents

require 'json'

describe "Numeric#to_json" do
  it "returns a string representing the number" do
    42.to_json.should == "42"
    3.142.to_json.should == "3.142"
  end
end

Version data entries

50 entries across 50 versions & 3 rubygems

Version Path
opal-0.9.0.rc1 spec/opal/core/numeric/to_json_spec.rb
opal-0.9.0.beta2 spec/opal/core/numeric/to_json_spec.rb
opal-0.9.0.beta1 spec/opal/core/numeric/to_json_spec.rb
opal-0.8.1 spec/opal/core/numeric/to_json_spec.rb
opal-0.8.1.rc1 spec/opal/core/numeric/to_json_spec.rb
opal-wedge-0.9.0.dev spec/opal/core/numeric/to_json_spec.rb
opal-0.8.0 spec/opal/core/numeric/to_json_spec.rb
opal-0.8.0.rc3 spec/opal/core/numeric/to_json_spec.rb
opal-0.8.0.rc2 spec/opal/core/numeric/to_json_spec.rb
opal-0.8.0.rc1 spec/opal/core/numeric/to_json_spec.rb
opal-0.8.0.beta1 spec/opal/core/numeric/to_json_spec.rb
opal-0.7.2 spec/opal/core/numeric/to_json_spec.rb
opal-0.7.1 spec/opal/core/numeric/to_json_spec.rb
opal-0.7.0 spec/opal/core/numeric/to_json_spec.rb
opal-0.7.0.rc1 spec/opal/core/numeric/to_json_spec.rb
opal-0.7.0.beta3 spec/opal/core/numeric/to_json_spec.rb
opal-0.6.3 spec/opal/core/numeric/to_json_spec.rb
opal-0.7.0.beta2 spec/opal/core/numeric/to_json_spec.rb
opal-cj-0.7.0.beta2 spec/opal/core/numeric/to_json_spec.rb
opal-cj-0.7.0.beta1 spec/opal/core/numeric/to_json_spec.rb