Sha256: 358a3c67808aa58437e068bf9782d7194bbedf9bf75717a4d43dae161d0e8596

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Numeric::Exponentiation, '#inverse' do
  subject { object.inverse }

  let(:object) { described_class.new(left, right) }
  let(:left)   { 2                                }
  let(:right)  { 2                                }

  it_should_behave_like 'an idempotent method'

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

  its(:left)  { should equal(left)                                    }
  its(:right) { should eql(Function::Numeric::Division.new(1, right)) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/veritas/function/numeric/exponentiation/inverse_spec.rb