improve tests for parseInt radix

pull/18182/head
dhcodes 2017-01-22 08:35:16 -06:00
parent 274af22bfd
commit fe916191f8
1 changed files with 2 additions and 2 deletions

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,