提交 2ae83173 编写于 作者: 雪洛's avatar 雪洛

test: 屏蔽safari 15不支持的测试例

上级 4336810f
...@@ -224,6 +224,8 @@ export function testRegExp(): Result { ...@@ -224,6 +224,8 @@ export function testRegExp(): Result {
const result8 = pattern8.exec('https://example.org')!; const result8 = pattern8.exec('https://example.org')!;
expect(result8[0]).toEqual('https://example.org'); expect(result8[0]).toEqual('https://example.org');
// #ifndef WEB
// 目前的测试环境safari版本为15,不支持?<
const pattern9 = /(?<=@)\w+/; const pattern9 = /(?<=@)\w+/;
const result9 = pattern9.exec('Email: john@example.com')!; const result9 = pattern9.exec('Email: john@example.com')!;
expect(result9[0]).toEqual('example'); expect(result9[0]).toEqual('example');
...@@ -231,6 +233,7 @@ export function testRegExp(): Result { ...@@ -231,6 +233,7 @@ export function testRegExp(): Result {
const pattern10 = /(?<!@)\w+/; const pattern10 = /(?<!@)\w+/;
const result10 = pattern10.exec('Username: john')!; const result10 = pattern10.exec('Username: john')!;
expect(result10[0]).toEqual('Username'); expect(result10[0]).toEqual('Username');
// #endif
const CHUNK_REGEXP = const CHUNK_REGEXP =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册