Sha256: 11667dd0a5485ffaf1d831a4e08c93879b7cf9f9945bfb5ba790f076dbc2862e

Contents?: true

Size: 572 Bytes

Versions: 3

Compression:

Stored size: 572 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Danica::Operator::SquaredRoot do
  subject { described_class.new(9) }

  it_behaves_like 'an object that respond to basic_methods'
  it_behaves_like 'an object with basic operation'

  it_behaves_like 'a operator with a single input value',
                  variable_value: 9,
                  expected_number: 3.0,
                  expected_number_tex: '\sqrt{9}',
                  expected_number_gnu: 'sqrt(9)',
                  expected_tex: '\sqrt{X}',
                  expected_gnu: 'sqrt(X)'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danica-2.7.7 spec/lib/danica/operator/squared_root_spec.rb
danica-2.7.6 spec/lib/danica/operator/squared_root_spec.rb
danica-2.7.5 spec/lib/danica/operator/squared_root_spec.rb