Sha256: c72f8b256faa14819a67d0f76107bfcc7f50bfc86a9e349b2dff4c3812614585
Contents?: true
Size: 222 Bytes
Versions: 36
Compression:
Stored size: 222 Bytes
Contents
describe Integer, "#digital_sum" do it "returns the sum of the digits of self" do 1.digital_sum.should == 1 10.digital_sum.should == 1 22.digital_sum.should == 4 282761.digital_sum.should == 26 end end
Version data entries
36 entries across 36 versions & 1 rubygems