Skip to content

Commit 84242f0

Browse files
authored
Add testcases (#46)
1 parent 6f291a0 commit 84242f0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/lib/rules/letter-case.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,24 @@ tester.run("letter-case", rule as any, {
131131
output: `/[a-z]/i`,
132132
errors: ["'A-Z' is not in lowercase"],
133133
},
134+
{
135+
code: String.raw`/[\u0041-Z]/i`,
136+
output: `/[a-z]/i`,
137+
errors: ["'\\u0041-Z' is not in lowercase"],
138+
},
139+
{
140+
code: String.raw`/[\u004A-Z]/i`,
141+
output: String.raw`/[\u004a-Z]/i`,
142+
errors: [
143+
"'\\u004A-Z' is not in lowercase",
144+
"'\\u004A' is not in lowercase",
145+
],
146+
},
147+
{
148+
code: String.raw`/[\u004a-Z]/i`,
149+
output: `/[j-z]/i`,
150+
errors: ["'\\u004a-Z' is not in lowercase"],
151+
},
134152
{
135153
code: String.raw`/\u000A/`,
136154
output: String.raw`/\u000a/`,

0 commit comments

Comments
 (0)