Sha256: 4e3db1ef1addeeeeae59cca237e7b9672da50f3c50ef2bc84dbe5acbbb2c9173
Contents?: true
Size: 172 Bytes
Versions: 3
Compression:
Stored size: 172 Bytes
Contents
describe Numeric do context "#square" do it("Fixnum") { expect(10.square).to eq(100) } it("Float") { expect(10.2.square).to eq(104.03999999999999) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
more_core_extensions-3.2.0 | spec/core_ext/numeric/math_spec.rb |
more_core_extensions-3.1.1 | spec/core_ext/numeric/math_spec.rb |
more_core_extensions-3.1.0 | spec/core_ext/numeric/math_spec.rb |