diff --git a/tests/draft3/maxLength.json b/tests/draft3/maxLength.json index 561767b9..e9318ce8 100644 --- a/tests/draft3/maxLength.json +++ b/tests/draft3/maxLength.json @@ -22,6 +22,11 @@ "description": "ignores non-strings", "data": 10, "valid": true + }, + { + "description": "two supplementary Unicode code points (here, U+1F4A9) is long enough", + "data": "\uD83D\uDCA9\uD83D\uDCA9", + "valid": true } ] } diff --git a/tests/draft3/minLength.json b/tests/draft3/minLength.json index e9c14b17..d7d00a72 100644 --- a/tests/draft3/minLength.json +++ b/tests/draft3/minLength.json @@ -22,6 +22,11 @@ "description": "ignores non-strings", "data": 1, "valid": true + }, + { + "description": "one supplementary Unicode code point (here, U+1F4A9) is not long enough", + "data": "\uD83D\uDCA9", + "valid": false } ] } diff --git a/tests/draft4/maxLength.json b/tests/draft4/maxLength.json index 561767b9..e9318ce8 100644 --- a/tests/draft4/maxLength.json +++ b/tests/draft4/maxLength.json @@ -22,6 +22,11 @@ "description": "ignores non-strings", "data": 10, "valid": true + }, + { + "description": "two supplementary Unicode code points (here, U+1F4A9) is long enough", + "data": "\uD83D\uDCA9\uD83D\uDCA9", + "valid": true } ] } diff --git a/tests/draft4/minLength.json b/tests/draft4/minLength.json index e9c14b17..d7d00a72 100644 --- a/tests/draft4/minLength.json +++ b/tests/draft4/minLength.json @@ -22,6 +22,11 @@ "description": "ignores non-strings", "data": 1, "valid": true + }, + { + "description": "one supplementary Unicode code point (here, U+1F4A9) is not long enough", + "data": "\uD83D\uDCA9", + "valid": false } ] }