Skip to content

Commit fd8c8be

Browse files
Enhance test for all supported characters
1 parent c3509dd commit fd8c8be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pattern.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,11 +608,12 @@ describe('expand', () => {
608608
}
609609
);
610610

611-
it.each([/(.|\r)/s, /[\s\S]/])(
611+
it.each([/(.|\r)/s, /[\s\S]/, /[\w\W]/, /[\d\D]/])(
612612
'includes all supported characters in %p',
613613
regex => {
614614
const result = expandAll(regex);
615615

616+
expect(result).toHaveLength(Chars.all.length);
616617
Chars.all.forEach(char => {
617618
expect(result).toContain(char);
618619
});

0 commit comments

Comments
 (0)