◐ Shell
clean mode source ↗

test: remove string literals from assert.strictEqual() calls · nodejs/node@2270ab2

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

}