From e93134d9b6961fbea7c3df05988bc50b060f33fb Mon Sep 17 00:00:00 2001 From: Diem-Trang Pham <6422507+pdtrang@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:10:37 -0600 Subject: [PATCH] feat(curriculum): add test case for Daily Challenge - Email Validator (#64165) --- .../68cae5b538ff798bbd4da005.md | 6 ++++++ .../68cae5b538ff798bbd4da005.md | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/curriculum/challenges/english/blocks/daily-coding-challenges-javascript/68cae5b538ff798bbd4da005.md b/curriculum/challenges/english/blocks/daily-coding-challenges-javascript/68cae5b538ff798bbd4da005.md index f015916eaed..2a2edbd3562 100644 --- a/curriculum/challenges/english/blocks/daily-coding-challenges-javascript/68cae5b538ff798bbd4da005.md +++ b/curriculum/challenges/english/blocks/daily-coding-challenges-javascript/68cae5b538ff798bbd4da005.md @@ -68,6 +68,12 @@ assert.isFalse(validate("hello.@wo.rld")); assert.isFalse(validate("hello@world..com")); ``` +`validate("develop..ment_user@c0D!NG.R.CKS")` should return `false`. + +```js +assert.isFalse(validate("develop..ment_user@c0D!NG.R.CKS")); +``` + `validate("git@commit@push.io")` should return `false`. ```js diff --git a/curriculum/challenges/english/blocks/daily-coding-challenges-python/68cae5b538ff798bbd4da005.md b/curriculum/challenges/english/blocks/daily-coding-challenges-python/68cae5b538ff798bbd4da005.md index d327002484d..d2e951cf962 100644 --- a/curriculum/challenges/english/blocks/daily-coding-challenges-python/68cae5b538ff798bbd4da005.md +++ b/curriculum/challenges/english/blocks/daily-coding-challenges-python/68cae5b538ff798bbd4da005.md @@ -92,6 +92,15 @@ TestCase().assertIs(validate("hello@world..com"), False)`) }}) ``` +`validate("develop..ment_user@c0D!NG.R.CKS")` should return `False`. + +```js +({test: () => { runPython(` +from unittest import TestCase +TestCase().assertIs(validate("develop..ment_user@c0D!NG.R.CKS"), False)`) +}}) +``` + `validate("git@commit@push.io")` should return `False`. ```js