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