diff options
Diffstat (limited to 'spec/rubyspec/core/integer/numerator_spec.rb')
-rw-r--r-- | spec/rubyspec/core/integer/numerator_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/rubyspec/core/integer/numerator_spec.rb b/spec/rubyspec/core/integer/numerator_spec.rb new file mode 100644 index 0000000000..12550b9a31 --- /dev/null +++ b/spec/rubyspec/core/integer/numerator_spec.rb @@ -0,0 +1,18 @@ +require File.expand_path('../../../spec_helper', __FILE__) + +describe "Integer#numerator" do + before :all do + @numbers = [ + 0, + 29871, + 99999999999999**99, + 72628191273, + ].map{|n| [-n, n]}.flatten + end + + it "returns self" do + @numbers.each do |number| + number.numerator.should == number + end + end +end |