зеркало из https://github.com/github/ruby.git
Fixed indefinite articles before "Integer" [ci skip]
This commit is contained in:
Родитель
ad534a677a
Коммит
fb8f011422
2
bignum.c
2
bignum.c
|
@ -5512,7 +5512,7 @@ rb_big_le(VALUE x, VALUE y)
|
||||||
*
|
*
|
||||||
* Returns <code>true</code> only if <i>obj</i> has the same value
|
* Returns <code>true</code> only if <i>obj</i> has the same value
|
||||||
* as <i>big</i>. Contrast this with Integer#eql?, which requires
|
* as <i>big</i>. Contrast this with Integer#eql?, which requires
|
||||||
* <i>obj</i> to be a Integer.
|
* <i>obj</i> to be an Integer.
|
||||||
*
|
*
|
||||||
* 68719476736 == 68719476736.0 #=> true
|
* 68719476736 == 68719476736.0 #=> true
|
||||||
*/
|
*/
|
||||||
|
|
2
class.c
2
class.c
|
@ -1881,7 +1881,7 @@ rb_singleton_class_get(VALUE obj)
|
||||||
* Returns the singleton class of \a obj. Creates it if necessary.
|
* Returns the singleton class of \a obj. Creates it if necessary.
|
||||||
*
|
*
|
||||||
* \param obj an arbitrary object.
|
* \param obj an arbitrary object.
|
||||||
* \throw TypeError if \a obj is a Integer or a Symbol.
|
* \throw TypeError if \a obj is an Integer or a Symbol.
|
||||||
* \return the singleton class.
|
* \return the singleton class.
|
||||||
*
|
*
|
||||||
* \post \a obj has its own singleton class.
|
* \post \a obj has its own singleton class.
|
||||||
|
|
|
@ -670,7 +670,7 @@ rb_last_status_clear(void)
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* stat.to_i -> integer
|
* stat.to_i -> integer
|
||||||
*
|
*
|
||||||
* Returns the bits in _stat_ as a Integer. Poking
|
* Returns the bits in _stat_ as an Integer. Poking
|
||||||
* around in these bits is platform dependent.
|
* around in these bits is platform dependent.
|
||||||
*
|
*
|
||||||
* fork { exit 0xab } #=> 26566
|
* fork { exit 0xab } #=> 26566
|
||||||
|
|
|
@ -60,7 +60,7 @@ describe Object, "#new_fd" do
|
||||||
rm_r @name
|
rm_r @name
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns a Integer that can be used to create an IO instance" do
|
it "returns an Integer that can be used to create an IO instance" do
|
||||||
fd = new_fd @name
|
fd = new_fd @name
|
||||||
fd.should be_kind_of(Integer)
|
fd.should be_kind_of(Integer)
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ describe :integer_equal, shared: true do
|
||||||
10.send(@method, bignum_value).should == false
|
10.send(@method, bignum_value).should == false
|
||||||
end
|
end
|
||||||
|
|
||||||
it "calls 'other == self' if the given argument is not a Integer" do
|
it "calls 'other == self' if the given argument is not an Integer" do
|
||||||
1.send(@method, '*').should == false
|
1.send(@method, '*').should == false
|
||||||
|
|
||||||
obj = mock('one other')
|
obj = mock('one other')
|
||||||
|
|
|
@ -667,7 +667,7 @@ describe :marshal_load, shared: true do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "for a Integer" do
|
describe "for an Integer" do
|
||||||
it "loads 0" do
|
it "loads 0" do
|
||||||
Marshal.send(@method, "\004\bi\000").should == 0
|
Marshal.send(@method, "\004\bi\000").should == 0
|
||||||
Marshal.send(@method, "\004\bi\005").should == 0
|
Marshal.send(@method, "\004\bi\005").should == 0
|
||||||
|
|
|
@ -4,7 +4,7 @@ describe "Rational#<=> when passed a Rational object" do
|
||||||
it_behaves_like :rational_cmp_rat, :<=>
|
it_behaves_like :rational_cmp_rat, :<=>
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "Rational#<=> when passed a Integer object" do
|
describe "Rational#<=> when passed an Integer object" do
|
||||||
it_behaves_like :rational_cmp_int, :<=>
|
it_behaves_like :rational_cmp_int, :<=>
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ platform_is :windows do
|
||||||
@var = ole_type.variables[0]
|
@var = ole_type.variables[0]
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns a Integer" do
|
it "returns an Integer" do
|
||||||
# according to doc, this could return nil
|
# according to doc, this could return nil
|
||||||
@var.value.should be_kind_of Integer
|
@var.value.should be_kind_of Integer
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче