mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@6f38a82
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b864bd05bf
commit
4fbb9aa3cb
145 changed files with 2847 additions and 2596 deletions
|
@ -36,7 +36,7 @@ describe "BigDecimal#mod_part_of_divmod" do
|
|||
it_behaves_like :bigdecimal_modulo, :mod_part_of_divmod
|
||||
|
||||
it "raises ZeroDivisionError if other is zero" do
|
||||
bd5667 = BigDecimal.new("5667.19")
|
||||
bd5667 = BigDecimal("5667.19")
|
||||
|
||||
lambda { bd5667.send(@method, 0) }.should raise_error(ZeroDivisionError)
|
||||
lambda { bd5667.send(@method, BigDecimal("0")) }.should raise_error(ZeroDivisionError)
|
||||
|
@ -96,8 +96,8 @@ describe "BigDecimal#divmod" do
|
|||
|
||||
it "can be reversed with * and +" do
|
||||
# Example taken from BigDecimal documentation
|
||||
a = BigDecimal.new("42")
|
||||
b = BigDecimal.new("9")
|
||||
a = BigDecimal("42")
|
||||
b = BigDecimal("9")
|
||||
q, m = a.divmod(b)
|
||||
c = q * b + m
|
||||
a.should == c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue