Update return-values.js (Number#toExponential bug in Firefox) (#751)

Update test cases for Number#toExponential

Includes test cases addressing a known bug on Firefox 48.

Ref https://bugzilla.mozilla.org/show_bug.cgi?id=944846
This commit is contained in:
Viktor 2016-08-30 02:33:55 +05:00 committed by Leo Balter
parent 11d7dcc997
commit 29c2384449
1 changed files with 3 additions and 0 deletions

View File

@ -51,3 +51,6 @@ assert.sameValue((0.9999).toExponential(17), "9.99900000000000011e-1");
assert.sameValue((0.9999).toExponential(18), "9.999000000000000110e-1");
assert.sameValue((0.9999).toExponential(19), "9.9990000000000001101e-1");
assert.sameValue((0.9999).toExponential(20), "9.99900000000000011013e-1");
assert.sameValue((25).toExponential(0), "3e+1");
assert.sameValue((12345).toExponential(3), "1.235e+4");