MCPcopy Index your code
hub / github.com/nodejs/node / test_parseInt

Function test_parseInt

deps/v8/test/mjsunit/whitespaces.js:74–83  ·  view source on GitHub ↗
(c, postfix)

Source from the content-addressed store, hash-verified

72}
73
74function test_parseInt(c, postfix) {
75 // Skip if prefix is a digit.
76 if (c >= "0" && c <= "9") return;
77 var str = c + c + "123" + postfix;
78 if (is_whitespace(c)) {
79 assertEquals(123, parseInt(str));
80 } else {
81 assertEquals(NaN, parseInt(str));
82 }
83}
84
85function test_eval(c, content) {
86 if (!is_whitespace(c)) return;

Callers 1

testCodePointRangeFunction · 0.85

Calls 2

is_whitespaceFunction · 0.85
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…