blob: 75d11db3621cd1d2e7a18a5fb51bc87d4f811cf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
var v = [0, 0x7fffffff];
v.sort();
assertEq(v[0], 0);
assertEq(v[1], 0x7fffffff);
v = [0x7fffffff, 0];
v.sort();
assertEq(v[0], 0);
assertEq(v[1], 0x7fffffff);
|