Sha256: 36b7eb075d0333e991786dcb4b8e0dd3c556cabe5f918407415b29c7f668e9d1
Contents?: true
Size: 545 Bytes
Versions: 2
Compression:
Stored size: 545 Bytes
Contents
require 'spec_helper' describe Danica::Power do let(:variables) { [2, 4] } subject { described_class.new(*variables) } it_behaves_like 'an object with + operation' it_behaves_like 'a operator that has two terms', :power, { values: [ 3, 2 ], calculated: 9.0, to_tex: { string_expected: 'X1^{X2}', numeric_string_expected: '9', partial_string_expected: '3^{X2}' }, to_gnu: { string_expected: 'X1**X2', numeric_string_expected: '9', partial_string_expected: '3**X2' } } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danica-2.0.3 | spec/lib/danica/power_spec.rb |
danica-2.0.2 | spec/lib/danica/power_spec.rb |