spec/lib/danica/sum_spec.rb in danica-2.0.4 vs spec/lib/danica/sum_spec.rb in danica-2.0.5
- old
+ new
@@ -21,18 +21,18 @@
let(:subject_included) { 10 }
end
it_behaves_like 'a operator that joins many variables with same operation', {
calculated: 10,
- numeric_variables: [ 1.5, 2.5, 3.5 ],
+ numeric_variables: [ 1.5, 3.0, 3.5 ],
to_tex: {
string_expected: 'X1 + X2 + X3 + X4',
- integer_expected: '4 + X3 + X4',
- float_expected: '7.5 + X4'
+ integer_expected: '1.5 + 3 + X3 + X4',
+ float_expected: '1.5 + 3 + 3.5 + X4'
},
to_gnu: {
string_expected: 'X1 + X2 + X3 + X4',
- integer_expected: '4 + X3 + X4',
- float_expected: '7.5 + X4'
+ integer_expected: '1.5 + 3 + X3 + X4',
+ float_expected: '1.5 + 3 + 3.5 + X4'
}
}
end