summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testLocaleCompare.js
blob: e9428b2c6fd2621fba5ccbcdafb116e688cd8cd4 (plain)
1
2
3
4
5
6
7
8
assertEq("undefined".localeCompare(), 0);
assertEq("a".localeCompare(), "a".localeCompare("undefined"));
assertEq("a".localeCompare("b"), -1);
assertEq("a".localeCompare("b", "en"), -1);
assertEq("b".localeCompare("a"), 1);
assertEq("b".localeCompare("a", "en"), 1);
assertEq("a".localeCompare("a"), 0);
assertEq("a".localeCompare("a", "en"), 0);