summaryrefslogtreecommitdiff
path: root/spec/ruby/library/bigdecimal/modulo_spec.rb
blob: 6feeb685eb6135ccda6ad2893188072264738b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/modulo', __FILE__)

describe "BigDecimal#%" do
  it_behaves_like(:bigdecimal_modulo, :%)
  it_behaves_like(:bigdecimal_modulo_zerodivisionerror, :%)
end

describe "BigDecimal#modulo" do
  it_behaves_like(:bigdecimal_modulo, :modulo)
  it_behaves_like(:bigdecimal_modulo_zerodivisionerror, :modulo)
end