Sha256: 457a49ccdf18a0946e53037e6b07c851b1b666affe96265946dd944a3d0c3a17

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../test_helper')

## Uruguay
# source: http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay
class UYTest < Phoner::TestCase
  # 02 Montevideo
  def test_montevideo
    parse_test('+598 2 1234567', '598', '2', '1234567')
  end

  # 042 Maldonado
  def test_maldonado
    parse_test('+598 42 123456', '598', '42', '123456', "Uruguay", false)
  end

  # 09 Mobile phones
  def test_mobile_phones
    parse_test('+598 99 570110', '598', '99', '570110', "Uruguay", true)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phoner-1.0.1 test/countries/uy_test.rb
phoner-1.0 test/countries/uy_test.rb