summaryrefslogtreecommitdiff
path: root/spec/ruby/library/complex/math/cos_spec.rb
blob: 847acb7fa2df3fa1bd0a32d8edf871473a155801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require_relative '../../../spec_helper'
require 'complex'
require_relative 'shared/cos'

describe "Math#cos" do
  it_behaves_like :complex_math_cos, :_, IncludesMath.new

  it "is a private instance method" do
    IncludesMath.should have_private_instance_method(:cos)
  end
end

describe "Math.cos" do
  it_behaves_like :complex_math_cos, :_, CMath
end