Sha256: ec8e6c72e89f7a23dedb87ec1ee8f218a1492f6fa8f4aaf1651df21f6410614b
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 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 invertible method' it { should be_instance_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 |
---|---|
axiom-0.1.0 | spec/unit/axiom/function/numeric/exponentiation/inverse_spec.rb |