Sha256: 4f6cbbaab05109cbc0b2a5110dc4fc591185e0e284a874ea8d0b63d34d2ff557

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'

describe Danica::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_text: '3',
    expected_tex: '\sqrt{X}',
    expected_gnu: 'sqrt(X)'
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danica-2.0.4 spec/lib/danica/squared_root_spec.rb