Sha256: 72b11823d5e871c37edaf2003ce3e74c32dad3e06030bdf5f3982d2248bb06c4

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 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 'is invertible' do
    should eql(Function::Numeric::Exponentiation.new(value, 2))
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-0.0.7 spec/unit/veritas/function/numeric/square_root/inverse_spec.rb
veritas-0.0.6 spec/unit/veritas/function/numeric/square_root/inverse_spec.rb
veritas-0.0.5 spec/unit/veritas/function/numeric/square_root/inverse_spec.rb
veritas-0.0.4 spec/unit/veritas/function/numeric/square_root/inverse_spec.rb