Sha256: 380c784e46196bf0b17e57b4c32dff1ae2e405713680df9170d2d2d0fb470f44

Contents?: true

Size: 378 Bytes

Versions: 4

Compression:

Stored size: 378 Bytes

Contents

require_relative '../../lib/geo_swap/utilities'

module GeoSwap
  describe Utilities do
    describe 'degrees_to_radians' do
      DEG_RAD_DATA = [[180, Math::PI], [0, 0], [360, (2 * Math::PI)]]

      it 'converts numbers accurately' do
        DEG_RAD_DATA.each do |(deg, rad)|
          Utilities.degrees_to_radians(deg).should == rad
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geo_swap-0.2.1 spec/geo_swap/utilities_spec.rb
geo_swap-0.2.0 spec/geo_swap/utilities_spec.rb
geo_swap-0.1.0 spec/geo_swap/utilities_spec.rb
geo_swap-0.0.2 spec/geo_swap/utilities_spec.rb