Sha256: ee7104e9927cc7fef7e9a6e4a13b9f52219adbb8d8a08d3e272db60355808443

Contents?: true

Size: 599 Bytes

Versions: 3

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Danica::Operator::Cos do
  subject { described_class.new(:x) }

  it_behaves_like 'an object that respond to basic_methods'
  it_behaves_like 'an object with basic operation'

  it_behaves_like 'a operator with a single input value',
                  variable_value: Math::PI,
                  expected_number: -1.0,
                  expected_number_tex: 'cos(3.141592653589793)',
                  expected_number_gnu: 'cos(3.141592653589793)',
                  expected_tex: 'cos(X)',
                  expected_gnu: 'cos(X)'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danica-2.7.7 spec/lib/danica/operator/cos_spec.rb
danica-2.7.6 spec/lib/danica/operator/cos_spec.rb
danica-2.7.5 spec/lib/danica/operator/cos_spec.rb