barraclough@apple.com | b467c4c | 2010-07-13 20:34:11 +0000 | [diff] [blame] | 1 | This tests that a call to array.sort(compareFunction) works correctly for numeric comparisons (arg1 - arg2), and also for things that might look like numeric comparisons. |
2 | |||||
3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||||
4 | |||||
5 | |||||
6 | PASS [3,1,5,2,4].sort(doSort) is [1,2,3,4,5] | ||||
7 | PASS [3,1,5,2,4].sort(dontSort) is [3,1,5,2,4] | ||||
8 | PASS successfullyParsed is true | ||||
9 | |||||
10 | TEST COMPLETE | ||||
11 |