Sha256: fb8f4d362abfe7735b76e08f5707c7d3200d75e6a1fc750c848f6e22c1306796

Contents?: true

Size: 453 Bytes

Versions: 6

Compression:

Stored size: 453 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_tex: '\sqrt{9}',
    expected_number_gnu: 'sqrt(9)',
    expected_tex: '\sqrt{X}',
    expected_gnu: 'sqrt(X)'
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
danica-2.2.1 spec/lib/danica/squared_root_spec.rb
danica-2.2.0 spec/lib/danica/squared_root_spec.rb
danica-2.1.1 spec/lib/danica/squared_root_spec.rb
danica-2.1.0 spec/lib/danica/squared_root_spec.rb
danica-2.0.6 spec/lib/danica/squared_root_spec.rb
danica-2.0.5 spec/lib/danica/squared_root_spec.rb