Skip to content

Commit 85899fd

Browse files
committed
More description cleanup for Bengali non-ASCII tests.
1 parent b84b900 commit 85899fd

File tree

23 files changed

+35
-35
lines changed

23 files changed

+35
-35
lines changed

tests/draft-next/optional/format/date.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"valid": true
215215
},
216216
{
217-
"description": "non-ascii digits should be rejected",
217+
"description": "invalid non-ASCII '৪' (a Bengali 4)",
218218
"data": "1963-06-1৪",
219219
"valid": false
220220
}

tests/draft-next/optional/format/duration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"valid": false
120120
},
121121
{
122-
"description": "non-ascii digits should be rejected",
122+
"description": "invalid non-ASCII '২' (a Bengali 2)",
123123
"data": "P২Y",
124124
"valid": false
125125
}

tests/draft-next/optional/format/ipv4.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"valid": false
6565
},
6666
{
67-
"description": "leading zeroes should be rejected, as they are treated as octals",
67+
"description": "invalid leading zeroes, as they are treated as octals",
6868
"comment": "see https://sick.codes/universal-netmask-npm-package-used-by-270000-projects-vulnerable-to-octal-input-data-server-side-request-forgery-remote-file-inclusion-local-file-inclusion-and-more-cve-2021-28918/",
6969
"data": "087.10.0.1",
7070
"valid": false
@@ -75,7 +75,7 @@
7575
"valid": true
7676
},
7777
{
78-
"description": "non-ascii digits should be rejected",
78+
"description": "invalid non-ASCII '২' (a Bengali 2)",
7979
"data": "1২7.0.0.1",
8080
"valid": false
8181
}

tests/draft-next/optional/format/ipv6.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@
194194
"valid": false
195195
},
196196
{
197-
"description": "non-ascii digits should be rejected",
197+
"description": "invalid non-ASCII '৪' (a Bengali 4)",
198198
"data": "1:2:3:4:5:6:7:৪",
199199
"valid": false
200200
},
201201
{
202-
"description": "non-ascii digits should be rejected in the ipv4 portion also",
202+
"description": "invalid non-ASCII '৪' (a Bengali 4) in the IPv4 portion",
203203
"data": "1:2::192.16৪.0.1",
204204
"valid": false
205205
}

tests/draft-next/optional/format/time.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
"valid": false
190190
},
191191
{
192-
"description": "non-ascii digits should be rejected",
192+
"description": "invalid non-ASCII '২' (a Bengali 2)",
193193
"data": "1২:00:00Z",
194194
"valid": false
195195
}

tests/draft2019-09/optional/format/date.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
"valid": true
215215
},
216216
{
217-
"description": "non-ascii digits should be rejected",
217+
"description": "invalid non-ASCII '৪' (a Bengali 4)",
218218
"data": "1963-06-1৪",
219219
"valid": false
220220
}

tests/draft2019-09/optional/format/duration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"valid": false
120120
},
121121
{
122-
"description": "non-ascii digits should be rejected",
122+
"description": "invalid non-ASCII '২' (a Bengali 2)",
123123
"data": "P২Y",
124124
"valid": false
125125
}

tests/draft2019-09/optional/format/ipv4.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"valid": false
6565
},
6666
{
67-
"description": "leading zeroes should be rejected, as they are treated as octals",
67+
"description": "invalid leading zeroes, as they are treated as octals",
6868
"comment": "see https://sick.codes/universal-netmask-npm-package-used-by-270000-projects-vulnerable-to-octal-input-data-server-side-request-forgery-remote-file-inclusion-local-file-inclusion-and-more-cve-2021-28918/",
6969
"data": "087.10.0.1",
7070
"valid": false
@@ -75,7 +75,7 @@
7575
"valid": true
7676
},
7777
{
78-
"description": "non-ascii digits should be rejected",
78+
"description": "invalid non-ASCII '২' (a Bengali 2)",
7979
"data": "1২7.0.0.1",
8080
"valid": false
8181
}

tests/draft2019-09/optional/format/ipv6.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@
194194
"valid": false
195195
},
196196
{
197-
"description": "non-ascii digits should be rejected",
197+
"description": "invalid non-ASCII '৪' (a Bengali 4)",
198198
"data": "1:2:3:4:5:6:7:৪",
199199
"valid": false
200200
},
201201
{
202-
"description": "non-ascii digits should be rejected in the ipv4 portion also",
202+
"description": "invalid non-ASCII '৪' (a Bengali 4) in the IPv4 portion",
203203
"data": "1:2::192.16৪.0.1",
204204
"valid": false
205205
}

tests/draft2019-09/optional/format/time.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
"valid": false
190190
},
191191
{
192-
"description": "non-ascii digits should be rejected",
192+
"description": "invalid non-ASCII '২' (a Bengali 2)",
193193
"data": "1২:00:00Z",
194194
"valid": false
195195
}

0 commit comments

Comments
 (0)