Sha256: 649d2625f7ab8e044eb3b8ea6bf7ecb28cc610a3e54b36ba99f0b7f8040eb769

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 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_text: '-1',
    expected_tex: 'cos(X)',
    expected_gnu: 'cos(X)'
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danica-2.0.4 spec/lib/danica/cos_spec.rb