Skip to content

Commit

Permalink
Merge pull request #711 from wonda-tea-coffee/fix-bigdecimal-new
Browse files Browse the repository at this point in the history
Fix BigDecimal.new
  • Loading branch information
larskanis authored Jun 30, 2019
2 parents 6e4aa91 + 4a902b9 commit d9e07ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/ffi/long_double.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ module LibTest
end

it "returns first parameter with high precision" do
ld = BigDecimal.new("1.234567890123456789")
tolerance = BigDecimal.new("0.0000000000000000001")
ld = BigDecimal("1.234567890123456789")
tolerance = BigDecimal("0.0000000000000000001")
expect(LibTest.ret_f128(ld)).to be_within(tolerance).of(ld)
end

Expand Down

0 comments on commit d9e07ce

Please sign in to comment.