Sha256: 4e1acfd89ad84f8603c4df46f900121c4e5f7336536d022ec0a98e565ab52c68

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 Bytes

Contents

require 'spec_helper'

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

  it_behaves_like 'an object with + operation'

  it_behaves_like 'a operator with a single input value', {
    variable_value: 2,
    expected_number: Math.exp(2),
    expected_number_text: Math.exp(2).to_s,
    expected_tex: 'e^{X}',
    expected_gnu: 'exp(X)'
  }
end

Version data entries

2 entries across 2 versions & 1 rubygems

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