Sha256: a776902a42227ace487cbf78cc1105f9f10c300c7b4012b7d08690cea930ba0f
Contents?: true
Size: 399 Bytes
Versions: 3
Compression:
Stored size: 399 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Rbm::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubymisc-0.2.0 | spec/rubymisc/ext/float_spec.rb |
rubymisc-0.1.0 | spec/rubymisc/ext/float_spec.rb |
rubymisc-0.0.4 | spec/rubymisc/ext/float_spec.rb |