Skip to content

Commit

Permalink
test: improve code coverage for i18n
Browse files Browse the repository at this point in the history
Coverage report for src/node_i18n.cc shows that the
Has() method is not covered. This test adds coverage
for that method.

PR-URL: #25428
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
mhdawson authored and MylesBorins committed May 16, 2019
1 parent d5316e0 commit 6b6c628
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/parallel/test-icu-punycode.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ if (!common.hasIntl)
const icu = process.binding('icu');
const assert = require('assert');

// test hasConverter method
assert(icu.hasConverter('utf-8'),
'hasConverter should report coverter exists for utf-8');
assert(!icu.hasConverter('x'),
'hasConverter should report coverter does not exist for x');

const tests = require('../fixtures/url-idna.js');
const wptToASCIITests = require('../fixtures/url-toascii.js');

Expand Down

0 comments on commit 6b6c628

Please sign in to comment.