mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(curriculum): add test case for Daily Challenge - Email Validator (#64165)
This commit is contained in:
+6
@@ -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
|
||||
|
||||
+9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user