michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: testJSON('-', true); michael@0: testJSON('+', true); michael@0: testJSON('-f', true); michael@0: testJSON('+f', true); michael@0: testJSON('00', true); michael@0: testJSON('01', true); michael@0: testJSON('1.', true); michael@0: testJSON('1.0e', true); michael@0: testJSON('1.0e+', true); michael@0: testJSON('1.0e-', true); michael@0: testJSON('1.0e+z', true); michael@0: testJSON('1.0e-z', true); michael@0: testJSON('1.0ee', true); michael@0: testJSON('1.e1', true); michael@0: testJSON('1.e+1', true); michael@0: testJSON('1.e-1', true); michael@0: testJSON('.', true); michael@0: testJSON('.1', true); michael@0: testJSON('.1e', true); michael@0: testJSON('.1e1', true); michael@0: testJSON('.1e+1', true); michael@0: testJSON('.1e-1', true); michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete");