Browse Source

String.prototype.localeCompare() test case fixes

pull/1/head
Sami Vaarala 12 years ago
parent
commit
756fde6fac
  1. 18
      testcases/test-builtin-string-proto-localecompare.js

18
testcases/test-builtin-string-proto-localecompare.js

@ -16,16 +16,19 @@ basic
number 1
number 0
number -1
number -1
number -1
number 0
number 1
number 1
number 0
number -1
number -1
number 1
number 1
number 0
number -1
number -1
number 1
number 0
number -1
===*/
/*---
@ -61,6 +64,11 @@ function basicTest() {
test('foo\u1234bar\u0900', 'foo\u1234bar\u0900');
test('foo\u1234bar\u0900', 'foo\u1234bar\u0901');
test('foo\u1234bar\u0900', 'foo\u1234bar\u3456');
// length cases
test('xx', 'x');
test('xx', 'xx');
test('xx', 'xxx');
}
try {
@ -94,8 +102,8 @@ number 0
number 1
number -1
number 0
number -1
number 1
number -1
argument
number 0
number -1
@ -119,8 +127,8 @@ number 0
number -1
number 1
number 0
number 1
number -1
number 1
===*/
/* Argument and this coercion */

Loading…
Cancel
Save