GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: remove string literals from assert.strictEqual() calls · nodejs/node@2270ab2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-intl.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-intl.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-intl.js
+10-10Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ if (!common.hasIntl) {
105105
const collOpts = { sensitivity: 'base', ignorePunctuation: true };
106106
const coll = new Intl.Collator(['en'], collOpts);
107107

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);
118118
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.