Sha256: 2d39ec98219d390877c61a6db7f59465afa07468bbcca59d864bd5c13c7301ce

Contents?: true

Size: 840 Bytes

Versions: 23

Compression:

Stored size: 840 Bytes

Contents

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

## Korea, Republic of
class KRTest < Phonie::TestCase
  def test_local
    parse_test('+8223123456',  '82', '2',  '3123456', 'Korea, Republic of', false)
    parse_test('+8221234567',  '82', '2',  '1234567', 'Korea, Republic of', false)
    parse_test('+82333123456', '82', '33', '3123456', 'Korea, Republic of', false)
    parse_test('+82643123456', '82', '64', '3123456', 'Korea, Republic of', false)
  end

  def test_mobile
    parse_test('+82103123456', '82', '10', '3123456', 'Korea, Republic of', true)
    parse_test('+82193123456', '82', '19', '3123456', 'Korea, Republic of', true)
    parse_test('+821085421653', '82', '10', '85421653', 'Korea, Republic of', true)
    parse_test('+821195188293', '82', '11', '95188293', 'Korea, Republic of', true)
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
phonie-3.3.1 test/countries/kr_test.rb
phonie-3.2.2 test/countries/kr_test.rb
phonie-3.2.1 test/countries/kr_test.rb
phonie-3.2.0 test/countries/kr_test.rb
phonie-3.1.15 test/countries/kr_test.rb
phonie-3.1.14 test/countries/kr_test.rb
phonie-3.1.13 test/countries/kr_test.rb
phonie-3.1.12 test/countries/kr_test.rb
phonie-3.1.11 test/countries/kr_test.rb
phonie-3.1.10 test/countries/kr_test.rb
phonie-3.1.9 test/countries/kr_test.rb
phonie-3.1.8 test/countries/kr_test.rb
phonie-3.1.7 test/countries/kr_test.rb
phonie-3.1.6 test/countries/kr_test.rb
phonie-3.1.5 test/countries/kr_test.rb
phonie-3.1.4 test/countries/kr_test.rb
phonie-3.1.3 test/countries/kr_test.rb
phonie-3.1.2 test/countries/kr_test.rb
phonie-3.1.1 test/countries/kr_test.rb
phonie-3.1.0 test/countries/kr_test.rb