Sha256: d7e6695a2f93ea2746f3253983cda4c0d88ee6c859f711e8517ce4a403f211c7

Contents?: true

Size: 480 Bytes

Versions: 6

Compression:

Stored size: 480 Bytes

Contents

require 'spec_helper'

describe Danica::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

6 entries across 6 versions & 1 rubygems

Version Path
danica-2.2.1 spec/lib/danica/cos_spec.rb
danica-2.2.0 spec/lib/danica/cos_spec.rb
danica-2.1.1 spec/lib/danica/cos_spec.rb
danica-2.1.0 spec/lib/danica/cos_spec.rb
danica-2.0.6 spec/lib/danica/cos_spec.rb
danica-2.0.5 spec/lib/danica/cos_spec.rb