Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a support for Africell telecom operator in Angola #112

Open
Sharykhin opened this issue Apr 21, 2022 · 0 comments
Open

Provide a support for Africell telecom operator in Angola #112

Sharykhin opened this issue Apr 21, 2022 · 0 comments

Comments

@Sharykhin
Copy link

Looks like phone numbers from a new telecom operator Africell doesn't work.

Phone number example: +244951949757

Go test:

package libphonenumber

import (
	"testing"
)

func TestPhoneNumber(t *testing.T) {
	phoneNumber := "+244951949757"
	p, _ := Parse(phoneNumber, "")
	if !IsValidNumber(p) {
		t.Error("phone number is invalid")
	}
}

Output:

=== RUN   TestPhoneNumber
    phone_number_test.go:11: phone number is invalid
--- FAIL: TestPhoneNumber (0.00s)
FAIL
FAIL    github.com/heetch/libphonenumber        0.313s
FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant