mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-28 21:00:56 +08:00
feat(curriculum): add test case for Daily Challenge - Email Validator (#64165)
This commit is contained in:
parent
745d463253
commit
e93134d9b6
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user