« Bugzilla Issues Index
#1527 — Coverage: Missing tests for Number.prototype.toFixed and toPrecision
- bug_id:
1527
- creation_ts:
2013-05-26 03:59:00 -0700
- short_desc:
Coverage: Missing tests for Number.prototype.toFixed and toPrecision
- delta_ts:
2013-06-11 08:31:05 -0700
- product:
Test262
- component:
ECMA-262 Tests
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
IN_PROGRESS
- see_also:
https://bugs.ecmascript.org/show_bug.cgi?id=1526
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Norbert
- assigned_to:
Brent Baker
- cc:
["andyearnshaw", "trbaker"]
- commentid:
4096
- comment_count:
0
- who:
Norbert
- bug_when:
2013-05-26 03:59:39 -0700
Bug 1526 mentions problems with the rounding behavior in Number.prototype.toFixed in some implementations. There are no tests for this behavior, which seems a serious gap. The Test402 test suite has a test 11.3.2_TRP, from which a test for toFixed could be derived (note however that toFixed uses exponential format in some case, while Intl.NumberFormat.prototype.format doesn't).
- commentid:
4097
- comment_count:
1
- who:
Norbert
- bug_when:
2013-05-26 04:06:07 -0700
The description should have said toPrecision rather than toFixed. But the same problem exists for toFixed - neither have adequate test coverage.