From b32bd1acc3bafc5014538352fefcb2f9bc0b7ac6 Mon Sep 17 00:00:00 2001 From: Max Chadwick Date: Tue, 17 Nov 2020 22:32:45 -0500 Subject: [PATCH] Add test for telephone --- src/provider_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/provider_test.go b/src/provider_test.go index b0269dc..550a840 100644 --- a/src/provider_test.go +++ b/src/provider_test.go @@ -138,4 +138,10 @@ func TestGet(t *testing.T) { if m, _ := regexp.MatchString(rx8, r17); !m { t.Errorf("Expected %v to match %v", r17, rx8) } + + // https://github.com/dmgk/faker/blob/v1.2.3/phone_number_test.go#L12 + r18 := provider.Get("telephone") + if m, _ := regexp.MatchString(rx3, r18); !m { + t.Errorf("Expected %v to match %v", r18, rx3) + } }