js/src/tests/ecma_5/JSON/parse-number-syntax.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/ecma_5/JSON/parse-number-syntax.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +// Any copyright is dedicated to the Public Domain.
     1.5 +// http://creativecommons.org/licenses/publicdomain/
     1.6 +
     1.7 +testJSON('-', true);
     1.8 +testJSON('+', true);
     1.9 +testJSON('-f', true);
    1.10 +testJSON('+f', true);
    1.11 +testJSON('00', true);
    1.12 +testJSON('01', true);
    1.13 +testJSON('1.', true);
    1.14 +testJSON('1.0e', true);
    1.15 +testJSON('1.0e+', true);
    1.16 +testJSON('1.0e-', true);
    1.17 +testJSON('1.0e+z', true);
    1.18 +testJSON('1.0e-z', true);
    1.19 +testJSON('1.0ee', true);
    1.20 +testJSON('1.e1', true);
    1.21 +testJSON('1.e+1', true);
    1.22 +testJSON('1.e-1', true);
    1.23 +testJSON('.', true);
    1.24 +testJSON('.1', true);
    1.25 +testJSON('.1e', true);
    1.26 +testJSON('.1e1', true);
    1.27 +testJSON('.1e+1', true);
    1.28 +testJSON('.1e-1', true);
    1.29 +
    1.30 +/******************************************************************************/
    1.31 +
    1.32 +if (typeof reportCompare === "function")
    1.33 +  reportCompare(true, true);
    1.34 +
    1.35 +print("Tests complete");

mercurial