From f913b0e3f00fbbb2084e4c63aa14509441b5d877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Wed, 3 Jan 2024 06:47:03 -0800 Subject: [PATCH] Sync phone-number tests (#321) --- .../practice/phone-number/.meta/tests.toml | 20 +++++++++++++++++++ .../phone-number/phone-number-test.rkt | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/exercises/practice/phone-number/.meta/tests.toml b/exercises/practice/phone-number/.meta/tests.toml index a0e16ebf..24dbf07a 100644 --- a/exercises/practice/phone-number/.meta/tests.toml +++ b/exercises/practice/phone-number/.meta/tests.toml @@ -20,6 +20,11 @@ description = "cleans numbers with multiple spaces" [598d8432-0659-4019-a78b-1c6a73691d21] description = "invalid when 9 digits" +include = false + +[2de74156-f646-42b5-8638-0ef1d8b58bc2] +description = "invalid when 9 digits" +reimplements = "598d8432-0659-4019-a78b-1c6a73691d21" [57061c72-07b5-431f-9766-d97da7c4399d] description = "invalid when 11 digits does not start with a 1" @@ -32,12 +37,27 @@ description = "valid when 11 digits and starting with 1 even with punctuation" [c6a5f007-895a-4fc5-90bc-a7e70f9b5cad] description = "invalid when more than 11 digits" +include = false + +[4a1509b7-8953-4eec-981b-c483358ff531] +description = "invalid when more than 11 digits" +reimplements = "c6a5f007-895a-4fc5-90bc-a7e70f9b5cad" [63f38f37-53f6-4a5f-bd86-e9b404f10a60] description = "invalid with letters" +include = false + +[eb8a1fc0-64e5-46d3-b0c6-33184208e28a] +description = "invalid with letters" +reimplements = "63f38f37-53f6-4a5f-bd86-e9b404f10a60" [4bd97d90-52fd-45d3-b0db-06ab95b1244e] description = "invalid with punctuations" +include = false + +[065f6363-8394-4759-b080-e6c8c351dd1f] +description = "invalid with punctuations" +reimplements = "4bd97d90-52fd-45d3-b0db-06ab95b1244e" [d77d07f8-873c-4b17-8978-5f66139bf7d7] description = "invalid if area code starts with 0" diff --git a/exercises/practice/phone-number/phone-number-test.rkt b/exercises/practice/phone-number/phone-number-test.rkt index 1487868a..574e387a 100644 --- a/exercises/practice/phone-number/phone-number-test.rkt +++ b/exercises/practice/phone-number/phone-number-test.rkt @@ -48,12 +48,12 @@ (test-exn "invalid with letters" exn:fail? (λ () - (nanp-clean "123-abc-7890"))) + (nanp-clean "523-abc-7890"))) (test-exn "invalid with punctuations" exn:fail? (λ () - (nanp-clean "123-@:!-7890"))) + (nanp-clean "523-@:!-7890"))) (test-exn "invalid if area code starts with 0" exn:fail?