Sha256: 08bbdead62d6713791fcda4fffcb5de4d583c4c91cd17b52fa9d07ef724a8a02

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 Bytes

Contents

require 'spec_helper'

describe Danica::Sin do
  subject { described_class.new(10) }

  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 / 2.0,
    expected_number: 1.0,
    expected_number_tex: 'sin(1.5707963267948966)',
    expected_number_gnu: 'sin(1.5707963267948966)',
    expected_tex: 'sin(X)',
    expected_gnu: 'sin(X)'
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

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