1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/bigdecimal/quo_spec.rb
2020-05-03 12:28:29 +02:00

12 lines
324 B
Ruby

require_relative '../../spec_helper'
require_relative 'shared/quo'
require 'bigdecimal'
describe "BigDecimal#quo" do
it_behaves_like :bigdecimal_quo, :quo, []
it "returns NaN if NaN is involved" do
BigDecimal("1").quo(BigDecimal("NaN")).should.nan?
BigDecimal("NaN").quo(BigDecimal("1")).should.nan?
end
end