Sha256: ed342cb97a3e7f59fad4c450c5fbfb272642ee85858324685707395ac904668e

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

require 'complex'
require File.expand_path('../shared/cosh', __FILE__)

describe "Math#cosh" do
  it_behaves_like :complex_math_cosh, :_, IncludesMath.new

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

ruby_version_is ""..."1.9" do
  describe "Math#cosh!" do
    it_behaves_like :complex_math_cosh_bang, :_, IncludesMath.new

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

describe "Math.cosh" do
  it_behaves_like :complex_math_cosh, :_, Math
end

ruby_version_is ""..."1.9" do
  describe "Math.cosh!" do
    it_behaves_like :complex_math_cosh_bang, :_, Math
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysl-complex-1.0.0 spec/math/cosh_spec.rb
rubysl-complex-2.0.0 spec/math/cosh_spec.rb