Sha256: 2952df4693fa394c01110822952b2ea7188694f53871e50e0590a93a874a6292
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Numeric::SquareRoot, '#inverse' do subject { object.inverse } let(:object) { described_class.new(value) } let(:value) { 4 } it_should_behave_like 'an invertible method' it { should be_instance_of(Function::Numeric::Exponentiation) } it 'returns an exponentiation of the expected value' do should eql(Function::Numeric::Exponentiation.new(value, 2)) end end
Version data entries
3 entries across 3 versions & 1 rubygems