Sha256: ae0233fbbb2d27fb7b7aac62fd368018f6f0c9673a994fa2cc6ec4337f67b443

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

require 'spec_helper'

describe Danica::Product do
  it_behaves_like 'a operator that joins many variables with same operation', {
    calculated: 24,
    numeric_variables: [ 1.5, 2, 3.5 ],
    to_tex: { 
      string_expected: %w(X1 X2 X3 X4).join(' \cdot '),
      integer_expected: %w(3 X3 X4).join(' \cdot '),
      float_expected: '10.5 \cdot X4'
    },
    to_gnu: {
      string_expected: %w(X1 X2 X3 X4).join(' * '),
      integer_expected: %w(3 X3 X4).join(' * '),
      float_expected: '10.5 * X4'
    }
  }
end

Version data entries

2 entries across 2 versions & 1 rubygems

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