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

Function test_stringtonumber

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

Source from the content-addressed store, hash-verified

89}
90
91function test_stringtonumber(c, postfix) {
92 // Skip if prefix is a digit.
93 if (c >= "0" && c <= "9") return;
94 var result = 1 + Number(c + "123" + c + postfix);
95 if (is_whitespace(c)) {
96 assertEquals(124, result);
97 } else {
98 assertEquals(NaN, result);
99 }
100}
101
102// Test is split into parts to increase parallelism.
103const number_of_tests = 10;

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…