BigDecimal#to_s has not changed for fraction part
The test for integer part was separated at dc54574adefe.
This commit is contained in:
parent
ea491802fa
commit
d3fd4a6d32
@ -39,7 +39,6 @@ describe "BigDecimal#to_s" do
|
|||||||
@bigneg.to_s("+").should_not =~ /^\+.*/
|
@bigneg.to_s("+").should_not =~ /^\+.*/
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_version_is ""..."3.3" do
|
|
||||||
it "inserts a space every n chars to fraction part, if integer n is supplied" do
|
it "inserts a space every n chars to fraction part, if integer n is supplied" do
|
||||||
re =\
|
re =\
|
||||||
/\A0\.314 159 265 358 979 323 846 264 338 327 950 288 419 716 939 937E1\z/i
|
/\A0\.314 159 265 358 979 323 846 264 338 327 950 288 419 716 939 937E1\z/i
|
||||||
@ -52,7 +51,6 @@ describe "BigDecimal#to_s" do
|
|||||||
# 0 is treated as no spaces
|
# 0 is treated as no spaces
|
||||||
BigDecimal("1.2345").to_s('0F').should == "1.2345"
|
BigDecimal("1.2345").to_s('0F').should == "1.2345"
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
version_is BigDecimal::VERSION, "3.1.5" do #ruby_version_is '3.3' do
|
version_is BigDecimal::VERSION, "3.1.5" do #ruby_version_is '3.3' do
|
||||||
it "inserts a space every n chars to integer part, if integer n is supplied" do
|
it "inserts a space every n chars to integer part, if integer n is supplied" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user