blob: 12550b9a3193918cacc697da5cd7db41a5546aa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|