tests/auto/qml/ecmascripttests/test262/test/built-ins/parseFloat/15.1.2.3-2-1.js
raw| 1 | // Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | es5id: 15.1.2.3-2-1 |
| 6 | es6id: 18.2.4 |
| 7 | esid: sec-parsefloat-string |
| 8 | description: > |
| 9 | pareseFloat - 'trimmedString' is the empty string when inputString |
| 10 | does not contain any such characters |
| 11 | ---*/ |
| 12 | |
| 13 | assert.sameValue(parseFloat(""), NaN, 'parseFloat("")'); |