Sha256: e0b993ee57d17e2ccd139e71219361705ee744ee09f024f5d85340236ec48345

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 Bytes

Contents

require 'spec_helper'

describe Danica::Function::Sum do
  it_behaves_like 'a function 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

3 entries across 3 versions & 1 rubygems

Version Path
danica-1.2.0 spec/lib/danica/function/sum_spec.rb
danica-1.1.0 spec/lib/danica/function/sum_spec.rb
danica-1.0.0 spec/lib/danica/function/sum_spec.rb