Merge pull request #12737 from dhcodes/fix/parseInt-tests

improve tests for parseInt radix
This commit is contained in:
Timo
2017-01-22 22:22:39 +01:00
committed by GitHub

View File

@ -5673,10 +5673,10 @@
"tail": [], "tail": [],
"solutions": [], "solutions": [],
"tests": [ "tests": [
"assert(typeof(convertToInteger(\"10011\")) !== \"number\", 'message: <code>convertToInteger(\"10011\")</code> should return a number');", "assert(typeof(convertToInteger(\"10011\")) === \"number\", 'message: <code>convertToInteger(\"10011\")</code> should return a number');",
"assert(convertToInteger(\"10011\") === 19, 'message: <code>convertToInteger(\"10011\")</code> should return 19');", "assert(convertToInteger(\"10011\") === 19, 'message: <code>convertToInteger(\"10011\")</code> should return 19');",
"assert(convertToInteger(\"111001\") === 57, 'message: <code>convertToInteger(\"111001\")</code> should return 57');", "assert(convertToInteger(\"111001\") === 57, 'message: <code>convertToInteger(\"111001\")</code> should return 57');",
"assert(!isNaN(convertToInteger(\"JamesBond\")); , 'message: <code>convertToInteger(\"JamesBond\")</code> should return NaN');" "assert.isNaN(convertToInteger(\"JamesBond\"), 'message: <code>convertToInteger(\"JamesBond\")</code> should return NaN');"
], ],
"type": "waypoint", "type": "waypoint",
"challengeType": 1, "challengeType": 1,