| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 187951c commit 2270ab2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -105,14 +105,14 @@ if (!common.hasIntl) { | |||
| 105 | 105 | const collOpts = { sensitivity: 'base', ignorePunctuation: true }; | |
| 106 | 106 | const coll = new Intl.Collator(['en'], collOpts); | |
| 107 | 107 | ||
| 108 | - assert.strictEqual(coll.compare('blackbird', 'black-bird'), 0, | ||
| 109 | - 'ignore punctuation failed'); | ||
| 110 | - assert.strictEqual(coll.compare('blackbird', 'red-bird'), -1, | ||
| 111 | - 'compare less failed'); | ||
| 112 | - assert.strictEqual(coll.compare('bluebird', 'blackbird'), 1, | ||
| 113 | - 'compare greater failed'); | ||
| 114 | - assert.strictEqual(coll.compare('Bluebird', 'bluebird'), 0, | ||
| 115 | - 'ignore case failed'); | ||
| 116 | - assert.strictEqual(coll.compare('\ufb03', 'ffi'), 0, | ||
| 117 | - 'ffi ligature (contraction) failed'); | ||
| 108 | + // ignore punctuation | ||
| 109 | + assert.strictEqual(coll.compare('blackbird', 'black-bird'), 0); | ||
| 110 | + // compare less | ||
| 111 | + assert.strictEqual(coll.compare('blackbird', 'red-bird'), -1); | ||
| 112 | + // compare greater | ||
| 113 | + assert.strictEqual(coll.compare('bluebird', 'blackbird'), 1); | ||
| 114 | + // ignore case | ||
| 115 | + assert.strictEqual(coll.compare('Bluebird', 'bluebird'), 0); | ||
| 116 | + // ffi ligature (contraction) | ||
| 117 | + assert.strictEqual(coll.compare('\ufb03', 'ffi'), 0); | ||
| 118 | 118 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments