1 assertEq( [1,2,3], redimSize( 3, [1,2,3] ) ); 2 assertEq( [1,2,3,1,1], redimSize( 5, [1,2,3] ) ); 3 assertEq( [1,6], redimSize( 2, [1,2,3] ) ); 4 assertEq( [6], redimSize( 1, [1,2,3] ) ); 5 assertEq( [1,1,1,1], redimSize( 4, cast(int[])[] ) );
See Implementation