Sha256: 286e3c4b85af3ecd1971e8036f904ab7fb19260094a0d76305a4a2c95fdeea40
Contents?: true
Size: 254 Bytes
Versions: 9
Compression:
Stored size: 254 Bytes
Contents
require "spec_helper" describe Fixnum do describe "#digits" do it "should return number of digits for a fixed number" do expect(1234.digits).to eq 4 end it "should return 1 for 0" do expect(0.digits).to eq 1 end end end
Version data entries
9 entries across 9 versions & 1 rubygems