提交 cf4934d9 编写于 作者: 杜庆泉's avatar 杜庆泉

补充部分 split 测试示例

上级 50499a11
...@@ -487,7 +487,11 @@ export function testString() : Result { ...@@ -487,7 +487,11 @@ export function testString() : Result {
expect(chars6.length).toEqual(3); expect(chars6.length).toEqual(3);
expect(chars6[2]).toEqual("l"); expect(chars6[2]).toEqual("l");
let a6 = "".split("",2)
expect(a6.length).toEqual(0);
let a7 = "".split("")
expect(a7.length).toEqual(0);
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
let sp1 = "😄😄".split(RegExp("(?:)", "")); let sp1 = "😄😄".split(RegExp("(?:)", ""));
let sp2 = "😄😄".split(RegExp("(?:)", "u")); let sp2 = "😄😄".split(RegExp("(?:)", "u"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册