Sha256: bd5c50557801a8fe0f3b641940e10684779c4bfb96b85076b75a6a2582e68a35

Contents?: true

Size: 385 Bytes

Versions: 11

Compression:

Stored size: 385 Bytes

Contents

# encoding: UTF-8
require 'spec_helper'

describe Iarea::Utils do
  it ".lat_lng_to_meshcode" do
    Iarea::Utils.lat_lng_to_meshcode(42.8840971954764,141.571321907496).should == "64412430032"
  end
  it ".expand_meshcode" do
    Iarea::Utils.expand_meshcode("64412430032").should == ["644124", "6441243", "64412430", "644124300", "6441243003", "64412430032", "64412430032"]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
iarea-0.5.0 spec/iarea/util_spec.rb
iarea-0.4.2 spec/iarea/util_spec.rb
iarea-0.4.1 spec/iarea/util_spec.rb
iarea-0.4.0 spec/iarea/util_spec.rb
iarea-0.3.0 spec/iarea/util_spec.rb
iarea-0.2.0 spec/iarea/util_spec.rb
iarea-0.1.4 spec/iarea/util_spec.rb
iarea-0.1.3 spec/iarea/util_spec.rb
iarea-0.1.2 spec/iarea/util_spec.rb
iarea-0.1.1 spec/iarea/util_spec.rb
iarea-0.1.0 spec/iarea/util_spec.rb