Sha256: 3d385f3d3ea84b4f350faf482d49c598f32b7f17f39d26730d8e02fe12a2afb8

Contents?: true

Size: 637 Bytes

Versions: 2

Compression:

Stored size: 637 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[:exponent, :**, :pow].each do |method|
  describe Function::Numeric::Exponentiation::Methods, "##{method}" do
    subject { object.send(method, other) }

    let(:described_class) { Class.new { include Function::Numeric::Exponentiation::Methods } }
    let(:object)          { described_class.new.freeze                                       }
    let(:other)           { double('Other').freeze                                           }

    it { should be_instance_of(Function::Numeric::Exponentiation) }

    its(:left) { should be(object) }

    its(:right) { should be(other) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/function/numeric/exponentiation/methods/exponent_spec.rb
axiom-0.1.1 spec/unit/axiom/function/numeric/exponentiation/methods/exponent_spec.rb