Skip to content

Commit 723b1d6

Browse files
rbucktongraphemecluster
authored andcommitted
Add remarks to test case file
1 parent 406468c commit 723b1d6

File tree

5 files changed

+43
-7
lines changed

5 files changed

+43
-7
lines changed

tests/baselines/reference/regularExpressionWithNonBMPFlags.errors.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
regularExpressionWithNonBMPFlags.ts(1,23): error TS1499: Unknown regular expression flag.
2-
regularExpressionWithNonBMPFlags.ts(1,25): error TS1499: Unknown regular expression flag.
3-
regularExpressionWithNonBMPFlags.ts(1,28): error TS1499: Unknown regular expression flag.
4-
regularExpressionWithNonBMPFlags.ts(1,41): error TS1499: Unknown regular expression flag.
5-
regularExpressionWithNonBMPFlags.ts(1,43): error TS1499: Unknown regular expression flag.
6-
regularExpressionWithNonBMPFlags.ts(1,45): error TS1499: Unknown regular expression flag.
1+
regularExpressionWithNonBMPFlags.ts(7,23): error TS1499: Unknown regular expression flag.
2+
regularExpressionWithNonBMPFlags.ts(7,25): error TS1499: Unknown regular expression flag.
3+
regularExpressionWithNonBMPFlags.ts(7,28): error TS1499: Unknown regular expression flag.
4+
regularExpressionWithNonBMPFlags.ts(7,41): error TS1499: Unknown regular expression flag.
5+
regularExpressionWithNonBMPFlags.ts(7,43): error TS1499: Unknown regular expression flag.
6+
regularExpressionWithNonBMPFlags.ts(7,45): error TS1499: Unknown regular expression flag.
77

88

99
==== regularExpressionWithNonBMPFlags.ts (6 errors) ====
10+
// The characters in the following regular expression are ASCII-lookalike characters found in Unicode, including:
11+
// - 𝘴 (U+1D634 Mathematical Sans-Serif Italic Small S)
12+
// - 𝘪 (U+1D62A Mathematical Sans-Serif Italic Small I)
13+
// - 𝘮 (U+1D62E Mathematical Sans-Serif Italic Small M)
14+
//
15+
// See https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols
1016
const 𝘳𝘦𝘨𝘦𝘹 = /(?𝘴𝘪-𝘮:^𝘧𝘰𝘰.)/𝘨𝘮𝘶;
1117
~~
1218
!!! error TS1499: Unknown regular expression flag.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
//// [tests/cases/compiler/regularExpressionWithNonBMPFlags.ts] ////
22

33
//// [regularExpressionWithNonBMPFlags.ts]
4+
// The characters in the following regular expression are ASCII-lookalike characters found in Unicode, including:
5+
// - 𝘴 (U+1D634 Mathematical Sans-Serif Italic Small S)
6+
// - 𝘪 (U+1D62A Mathematical Sans-Serif Italic Small I)
7+
// - 𝘮 (U+1D62E Mathematical Sans-Serif Italic Small M)
8+
//
9+
// See https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols
410
const 𝘳𝘦𝘨𝘦𝘹 = /(?𝘴𝘪-𝘮:^𝘧𝘰𝘰.)/𝘨𝘮𝘶;
511

612

713
//// [regularExpressionWithNonBMPFlags.js]
14+
// The characters in the following regular expression are ASCII-lookalike characters found in Unicode, including:
15+
// - 𝘴 (U+1D634 Mathematical Sans-Serif Italic Small S)
16+
// - 𝘪 (U+1D62A Mathematical Sans-Serif Italic Small I)
17+
// - 𝘮 (U+1D62E Mathematical Sans-Serif Italic Small M)
18+
//
19+
// See https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols
820
const 𝘳𝘦𝘨𝘦𝘹 = /(?𝘴𝘪-𝘮:^𝘧𝘰𝘰.)/𝘨𝘮𝘶;
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
//// [tests/cases/compiler/regularExpressionWithNonBMPFlags.ts] ////
22

33
=== regularExpressionWithNonBMPFlags.ts ===
4+
// The characters in the following regular expression are ASCII-lookalike characters found in Unicode, including:
5+
// - 𝘴 (U+1D634 Mathematical Sans-Serif Italic Small S)
6+
// - 𝘪 (U+1D62A Mathematical Sans-Serif Italic Small I)
7+
// - 𝘮 (U+1D62E Mathematical Sans-Serif Italic Small M)
8+
//
9+
// See https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols
410
const 𝘳𝘦𝘨𝘦𝘹 = /(?𝘴𝘪-𝘮:^𝘧𝘰𝘰.)/𝘨𝘮𝘶;
5-
>𝘳𝘦𝘨𝘦𝘹 : Symbol(𝘳𝘦𝘨𝘦𝘹, Decl(regularExpressionWithNonBMPFlags.ts, 0, 5))
11+
>𝘳𝘦𝘨𝘦𝘹 : Symbol(𝘳𝘦𝘨𝘦𝘹, Decl(regularExpressionWithNonBMPFlags.ts, 6, 5))
612

tests/baselines/reference/regularExpressionWithNonBMPFlags.types

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
//// [tests/cases/compiler/regularExpressionWithNonBMPFlags.ts] ////
22

33
=== regularExpressionWithNonBMPFlags.ts ===
4+
// The characters in the following regular expression are ASCII-lookalike characters found in Unicode, including:
5+
// - 𝘴 (U+1D634 Mathematical Sans-Serif Italic Small S)
6+
// - 𝘪 (U+1D62A Mathematical Sans-Serif Italic Small I)
7+
// - 𝘮 (U+1D62E Mathematical Sans-Serif Italic Small M)
8+
//
9+
// See https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols
410
const 𝘳𝘦𝘨𝘦𝘹 = /(?𝘴𝘪-𝘮:^𝘧𝘰𝘰.)/𝘨𝘮𝘶;
511
>𝘳𝘦𝘨𝘦𝘹 : RegExp
612
> : ^^^^^^
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
// @target: esnext
22

3+
// The characters in the following regular expression are ASCII-lookalike characters found in Unicode, including:
4+
// - 𝘴 (U+1D634 Mathematical Sans-Serif Italic Small S)
5+
// - 𝘪 (U+1D62A Mathematical Sans-Serif Italic Small I)
6+
// - 𝘮 (U+1D62E Mathematical Sans-Serif Italic Small M)
7+
//
8+
// See https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols
39
const 𝘳𝘦𝘨𝘦𝘹 = /(?𝘴𝘪-𝘮:^𝘧𝘰𝘰.)/𝘨𝘮𝘶;

0 commit comments

Comments
 (0)