Sha256: 39975965b074e5929bd03907c7504d7aa5a6225023f941ec900e1a463dde3dfc

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 Bytes

Contents

require 'spec_helper'

describe Danica::Power do
  let(:subject) do
    described_class.new(*variables)
  end

  it_behaves_like 'a operator that has two terms', :power, {
    values: [ 3, 2 ],
    calculated: 9.0,
    to_tex: {
      string_expected: 'X1^{X2}',
      numeric_string_expected: '9',
      partial_string_expected: '3^{X2}'
    },
    to_gnu: {
      string_expected: 'X1**X2',
      numeric_string_expected: '9',
      partial_string_expected: '3**X2'
    }
  }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
danica-2.0.1 spec/lib/danica/power_spec.rb
danica-2.0.0 spec/lib/danica/power_spec.rb