feat(curriculum): add test case for Daily Challenge - Email Validator (#64165)

This commit is contained in:
Diem-Trang Pham 2025-12-01 12:10:37 -06:00 committed by GitHub
parent 745d463253
commit e93134d9b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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