diff options
Diffstat (limited to 'tests/draft2020-12/optional/format/idn-email.json')
-rw-r--r-- | tests/draft2020-12/optional/format/idn-email.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/draft2020-12/optional/format/idn-email.json b/tests/draft2020-12/optional/format/idn-email.json new file mode 100644 index 0000000..552d106 --- /dev/null +++ b/tests/draft2020-12/optional/format/idn-email.json @@ -0,0 +1,28 @@ +[ + { + "description": "validation of an internationalized e-mail addresses", + "schema": {"format": "idn-email"}, + "tests": [ + { + "description": "a valid idn e-mail (example@example.test in Hangul)", + "data": "실례@실례.테스트", + "valid": true + }, + { + "description": "an invalid idn e-mail address", + "data": "2962", + "valid": false + }, + { + "description": "a valid e-mail address", + "data": "joe.bloggs@example.com", + "valid": true + }, + { + "description": "an invalid e-mail address", + "data": "2962", + "valid": false + } + ] + } +] |