Sha256: f9687a46c20ba5a2e492a440884c9b95261b28324afed9fb05f6a3d63df1d327

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

require 'spec_helper'

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

  it_behaves_like 'a operator that has two terms', :division, {
    values: [ 2, 4 ],
    calculated: 1.0 / 2.0,
    to_tex: {
      string_expected: '\frac{X1}{X2}',
      numeric_string_expected: '0.5',
      partial_string_expected: '\frac{2}{X2}'
    },
    to_gnu: {
      string_expected: 'X1/X2',
      numeric_string_expected: '0.5',
      partial_string_expected: '2/X2'
    }
  }
end

Version data entries

2 entries across 2 versions & 1 rubygems

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