Sha256: 2b2e2244aa4cd0172216191d88b74c530454bf7406dec46778af99b4126c21d6
Contents?: true
Size: 823 Bytes
Versions: 3
Compression:
Stored size: 823 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Danica::Operator::Power do subject { described_class.new(*variables) } let(:variables) { [2, 4] } it_behaves_like 'an object that respond to basic_methods' it_behaves_like 'an object with basic 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: '3^{2}', partial_string_expected: '3^{X2}' }, to_gnu: { string_expected: 'X1**(X2)', numeric_string_expected: '3**(2)', partial_string_expected: '3**(X2)' } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danica-2.7.7 | spec/lib/danica/operator/power_spec.rb |
danica-2.7.6 | spec/lib/danica/operator/power_spec.rb |
danica-2.7.5 | spec/lib/danica/operator/power_spec.rb |