Sha256: f325c6ca3919f9ac0628e3ea6d88e4f7caa56be8737b5ab731f26e7f918619c9

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require 'spec_helper'

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

  it_behaves_like 'an object with + operation'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
danica-2.0.3 spec/lib/danica/squared_root_spec.rb
danica-2.0.2 spec/lib/danica/squared_root_spec.rb