Skip to content

Commit 8b46336

Browse files
herwinwandrykonchin
authored andcommitted
Update descriptions for rational exponent for Ruby 3.4
These were copied from the pre-3.4-version, and not updated for the behaviour change.
1 parent 8fc6729 commit 8b46336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/rational/exponent.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
end
151151

152152
ruby_version_is "3.4" do
153-
it "returns positive Infinity when self < -1" do
153+
it "raises an ArgumentError when self < -1" do
154154
-> {
155155
(Rational(-2) ** bignum_value)
156156
}.should raise_error(ArgumentError)
@@ -159,7 +159,7 @@
159159
}.should raise_error(ArgumentError)
160160
end
161161

162-
it "returns 0.0 when self is < -1 and the exponent is negative" do
162+
it "raises an ArgumentError when self is < -1 and the exponent is negative" do
163163
-> {
164164
(Rational(-2) ** -bignum_value)
165165
}.should raise_error(ArgumentError)

0 commit comments

Comments
 (0)