1 Test for regression against Calling unshift passing more than 1 argument causes array corruption. It also tests some other unshift combinations.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS unshift1(1) is ["a"]
7 PASS unshift1(2) is ["a", "a"]
8 PASS unshift1(4) is ["a", "a", "a", "a"]
9 PASS unshift2(1) is ["a", "b"]
10 PASS unshift2(2) is ["a", "b", "a", "b"]
11 PASS unshift2(4) is ["a", "b", "a", "b", "a", "b", "a", "b"]
12 PASS unshift2(10) is ["a", "b", "a", "b", "a", "b", "a", "b", "a", "b", "a", "b", "a", "b", "a", "b", "a", "b", "a", "b"]
13 PASS unshift5(1) is ["a", "b", "c", "d", "e"]
14 PASS unshift5(2) is ["a", "b", "c", "d", "e", "a", "b", "c", "d", "e"]
15 PASS unshift5(6) is ["a", "b", "c", "d", "e", "a", "b", "c", "d", "e", "a", "b", "c", "d", "e", "a", "b", "c", "d", "e", "a", "b", "c", "d", "e", "a", "b", "c", "d", "e"]
16 PASS successfullyParsed is true