Sha256: df1677765ad6ff7d52b403b86e27230aa58d5b13908139bcd63e8e30a0b4cd21
Contents?: true
Size: 404 Bytes
Versions: 6
Compression:
Stored size: 404 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Rubymisc::Float do describe '#percent_of' do specify '50.0 is 50.0 percent of 100' do (50.0).percent_of(100).should be_kind_of Float (50.0).percent_of(100).should == 50.0 end specify '0.0 is 0.0 percent of 100' do (0.0).percent_of(100).should be_kind_of Float (0.0).percent_of(100).should == 0.0 end end end
Version data entries
6 entries across 6 versions & 1 rubygems