test: increased code coverage for slowCases

Added test coverage for 4 un-covered if statements in slowCases

PR-URL: https://github.com/nodejs/node/pull/23592
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Jared Haines 2018-10-12 11:23:14 -07:00 committed by Ruben Bridgewater
parent a97944306f
commit b2e4cb7b28
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -18,6 +18,7 @@ const tests = [
['utF-8', 'utf8'],
['ucs2', 'utf16le'],
['UCS2', 'utf16le'],
['UcS2', 'utf16le'],
['ucs-2', 'utf16le'],
['UCS-2', 'utf16le'],
['UcS-2', 'utf16le'],
@ -31,8 +32,11 @@ const tests = [
['LaTiN1', 'latin1'],
['base64', 'base64'],
['BASE64', 'base64'],
['Base64', 'base64'],
['hex', 'hex'],
['HEX', 'hex'],
['ASCII', 'ascii'],
['AsCii', 'ascii'],
['foo', undefined],
[1, undefined],
[false, undefined],