forked from carr/phone
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Aregentina, Costa Rica, Ethiopia and Tonga
- Loading branch information
Showing
6 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') | ||
|
||
## Argentina | ||
class ARTest < Phoner::TestCase | ||
def test_local | ||
parse_test('+541112345678', '54', '11', '12345678', 'Argentina', false) | ||
end | ||
|
||
def test_mobile | ||
parse_test('+5498211534567', '54', '9821', '1534567', 'Argentina', true) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') | ||
|
||
## Costa Rica | ||
class CRTest < Phoner::TestCase | ||
def test_local | ||
parse_test('+50621234567', '506', '2', '1234567', 'Costa Rica', false) | ||
end | ||
|
||
def test_mobile | ||
parse_test('50681234567', '506', '8', '1234567', 'Costa Rica', true) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') | ||
|
||
class ETTest < Phoner::TestCase | ||
def test_local | ||
parse_test('251111234567', '251', '11', '1234567', 'Ethiopia', false) | ||
end | ||
|
||
def test_mobile | ||
parse_test('+251911234567', '251', '91', '1234567', 'Ethiopia', true) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') | ||
|
||
## Tonga | ||
class TOTest < Phoner::TestCase | ||
def test_local | ||
parse_test('+67679321', '676', '79', '321', "Tonga", false) | ||
end | ||
|
||
def test_mobile | ||
parse_test('67688321', '676', '88', '321', "Tonga", true) | ||
end | ||
end |