• Home
  • Raw
  • Download

Lines Matching +full:non +full:- +full:array

7  *     http://www.apache.org/licenses/LICENSE-2.0
23 // @ts-nocheck
416 const arr = new SendableArray<string>(-1);
417 print("Init with small first element: -1 success.");
419 print("Init with small first element: -1, err: " + err + ", errCode: " + err.code);
438 print("Create with non-sendable element success.");
440 print("Create with non-sendable element fail. err: " + err + ", errCode: " + err.code);
447 SendableArray.from<NormalClass>(Array.from([new NormalClass(1), new NormalClass(2)]));
448 print("Create from non-sendable iterator success.");
450 print("Create from non-sendable iterator fail. err: " + err + ", errCode: " + err.code);
455 print("Create from non-sendable element success.");
457 print("Create from non-sendable element fail. err: " + err + ", errCode: " + err.code);
461 print("Create from mapper: non-sendable element success.");
463 … print("Create from mapper: non-sendable element fail. err: " + err + ", errCode: " + err.code);
471 print("Static create with non-sendable initialValue success.");
473 …print("Static create from non-sendable initialValue fail. err: " + err + ", errCode: " + err.code);
489 let array: SendableArray<number> = new SendableArray<number>(1, 3, 5);
490 …let normalArray = new Array<NormalClass>(new NormalClass(2), new NormalClass(4), new NormalClass(6…
493 array.concat(normalArray);
494 print("concat with non-sendable array success.");
496 print("concat with non-sendable array fail.err: " + err + ", errCode: " + err.code);
500 array.concat(new NormalClass(2));
501 print("concat with non-sendable element success.");
503 print("concat with non-sendable element fail. err: " + err + ", errCode: " + err.code);
587 print("fill array with non-sendable object and position success.");
589 …print("fill array with non-sendable object and position fail. err: " + err + ", errCode: " + err.c…
594 print("fill array with non-sendable object and start position success.");
596 …print("fill array with non-sendable object and start position fail. err: " + err + ", errCode: " +…
600 print("fill array with non-sendable object success.");
602 print("fill array with non-sendable object fail. err: " + err + ", errCode: " + err.code);
608 const array = new SendableArray<number>(1, 4, 9, 16); constant
610 array.map<NormalClass>((x: number) => new NormalClass(x));
611 print("map array with non-sendable success.");
613 print("map array with non-sendable fail. err: " + err + ", errCode: " + err.code);
619 let array: SendableArray<number> = new SendableArray<number>(1, 3, 5);
621 array.push(new NormalClass(5));
622 print("push array with non-sendable element success.");
624 print("push array with non-sendable element fail. err: " + err + ", errCode: " + err.code);
630 const array = new SendableArray<number>(1, 2, 3); constant
632 array.unshift(new NormalClass(4), new NormalClass(5));
633 print("unshift array with non-sendable element success.");
635 … print("unshift array with non-sendable element fail. err: " + err + ", errCode: " + err.code);
641 const array = new SendableArray<number>(1, 2, 3); constant
643 array.extendTo(5, new NormalClass(4));
644 print("extendTo array with non-sendable element success.");
646 … print("extendTo array with non-sendable element fail. err: " + err + ", errCode: " + err.code);
653 array1.forEach((key: number, _: number, array: SendableArray) => {
654 array.push(5);
657 print("add element while iterate array fail. err: " + err + ", errCode: " + err.code);
660 array1.forEach((key: number, _: number, array: SendableArray) => {
662 array.pop();
666 print("pop element while iterate array fail. err: " + err + ", errCode: " + err.code);
669 array1.forEach((key: number, _: number, array: SendableArray) => {
670 array.shrinkTo(0);
673 print("shrink while iterate array fail. err: " + err + ", errCode: " + err.code);
676 array1.forEach((key: number, _: number, array: SendableArray) => {
677 array.extendTo(array1.length + 1, 100);
680 print("extend while iterate array fail. err: " + err + ", errCode: " + err.code);