MCPcopy Create free account
hub / github.com/nodejs/node / test_trim

Function test_trim

deps/v8/test/mjsunit/whitespaces.js:65–72  ·  view source on GitHub ↗
(c, infix)

Source from the content-addressed store, hash-verified

63}
64
65function test_trim(c, infix) {
66 var str = c + c + c + infix + c;
67 if (is_whitespace(c)) {
68 assertEquals(infix, str.trim());
69 } else {
70 assertEquals(str, str.trim());
71 }
72}
73
74function test_parseInt(c, postfix) {
75 // Skip if prefix is a digit.

Callers 1

testCodePointRangeFunction · 0.85

Calls 2

is_whitespaceFunction · 0.85
assertEqualsFunction · 0.50

Tested by

no test coverage detected