Sha256: ba616cb397e643c6dde11cc30f6c2ba37838df66459b6b7efcf78c4068791165

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

require 'spec_helper'

describe Danica::Sum do
  it_behaves_like 'a operator that joins many variables with same operation', {
    calculated: 10,
    numeric_variables: [ 1.5, 2.5, 3.5 ],
    to_tex: {
      string_expected: 'X1 + X2 + X3 + X4',
      integer_expected: '4 + X3 + X4',
      float_expected: '7.5 + X4'
    },
    to_gnu: {
      string_expected: 'X1 + X2 + X3 + X4',
      integer_expected: '4 + X3 + X4',
      float_expected: '7.5 + X4'
    }
  }
end

Version data entries

2 entries across 2 versions & 1 rubygems

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