Sha256: 83d618039f56318285dc859bd3b1c13958b8c1a6bef66bec468217918556ffb0

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

require 'test/unit'
require 'kenyacodes'
class KenyacodesTest < Test::Unit::TestCase
  def test_postoffice
    mycodes = Kenyacodes::Postcodes.new
    assert_equal 'Kerugoya',mycodes.postoffice('10300')
  end
  
  def test_postcode
    mycodes = Kenyacodes::Postcodes.new
    assert_equal '10300', mycodes.postcode('Kerugoya')
  end
  
  def test_othercodes
   provinces = Kenyacodes::Total_provinces
   kenyacode = Kenyacodes::Kenya_international_code
    assert_equal 254, kenyacode
    assert_equal 8, provinces
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kenyacodes-1.0.0 test/test_kenyacodes.rb