michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: assertEq(testLenientAndStrict('"\\010"', michael@0: parsesSuccessfully, michael@0: parseRaisesException(SyntaxError)), michael@0: true); michael@0: michael@0: assertEq(testLenientAndStrict('"\\00"', michael@0: parsesSuccessfully, michael@0: parseRaisesException(SyntaxError)), michael@0: true); michael@0: michael@0: assertEq(testLenientAndStrict('"\\1"', michael@0: parsesSuccessfully, michael@0: parseRaisesException(SyntaxError)), michael@0: true); michael@0: michael@0: assertEq(testLenientAndStrict('"\\08"', michael@0: parsesSuccessfully, michael@0: parseRaisesException(SyntaxError)), michael@0: true); michael@0: michael@0: assertEq(testLenientAndStrict('"\\0"', michael@0: parsesSuccessfully, michael@0: parsesSuccessfully), michael@0: true); michael@0: michael@0: assertEq(testLenientAndStrict('"\\0x"', michael@0: parsesSuccessfully, michael@0: parsesSuccessfully), michael@0: true); michael@0: michael@0: reportCompare(true, true);