Unreviewed, rolling out r194328.
[WebKit-https.git] / LayoutTests / js / script-tests / string-localeCompare.js
1 description("This test checks String.localeCompare().");
2
3 shouldBeTrue('"a".localeCompare("aa") < 0');
4 shouldBeTrue('"a".localeCompare("b") < 0');
5
6 shouldBeTrue('"a".localeCompare("a") === 0');
7 shouldBeTrue('"a\u0308\u0323".localeCompare("a\u0323\u0308") === 0');
8
9 shouldBeTrue('"aa".localeCompare("a") > 0');
10 shouldBeTrue('"b".localeCompare("a") > 0');