Sha256: 689b61822854de32b48fb7a9cde559bf50594c5542b04adf72eea4e1eec3826e

Contents?: true

Size: 453 Bytes

Versions: 6

Compression:

Stored size: 453 Bytes

Contents

require 'spec_helper'

describe Danica::Exponential do
  subject { described_class.new(2) }

  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: 2,
    expected_number: Math.exp(2),
    expected_number_tex: 'e^{2}',
    expected_number_gnu: 'exp(2)',
    expected_tex: 'e^{X}',
    expected_gnu: 'exp(X)'
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

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