mirror of https://github.com/tc39/test262.git
1 line
86 KiB
JSON
1 line
86 KiB
JSON
{"testsCollection":{"name":"Chapter - 15.2.3.9","numTests":"44","tests":[{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuOS0wLTEiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjkvMTUuMi4zLjktMC0xLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmZyZWV6ZSBtdXN0IGV4aXN0IGFzIGEgZnVuY3Rpb24iLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgdmFyIGYgPSBPYmplY3QuZnJlZXplOwogIGlmICh0eXBlb2YoZikgPT09ICJmdW5jdGlvbiIpIHsKICAgIHJldHVybiB0cnVlOwogIH0KIH0KfSk7Cg==","id":"15.2.3.9-0-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-0-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuOS0wLTIiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjkvMTUuMi4zLjktMC0yLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmZyZWV6ZSBtdXN0IGV4aXN0IGFzIGEgZnVuY3Rpb24gdGFraW5nIDEgcGFyYW1ldGVyIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogIGlmIChPYmplY3QuZnJlZXplLmxlbmd0aCA9PT0gMSkgewogICAgcmV0dXJuIHRydWU7CiAgfQogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZnJlZXplKTsKIH0KfSk7Cg==","id":"15.2.3.9-0-2","path":"TestCases/chapter15/15.2/15.2.3/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ICAgICAgICAgICBPYmplY3QuZnJlZXplKG51bGwpOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZnJlZXplKTsKICAgIH0KfSk7Cg==","id":"15.2.3.9-1-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-1-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0xLTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTEtMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIHRocm93cyBUeXBlRXJyb3IgaWYgdHlwZSBvZiBmaXJzdCBwYXJhbSBpcyBib29sZWFuIHByaW1pdGl2ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5mcmVlemUoZmFsc2UpOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmVzdWx0ID0gZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmZyZWV6ZSh0cnVlKTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiByZXN1bHQgJiYgZSBpbnN0YW5jZW9mIFR5cGVFcnJvcjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZnJlZXplKTsKICAgIH0KfSk7Cg==","id":"15.2.3.9-1-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-1-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0xLTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTEtNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIHRocm93cyBUeXBlRXJyb3IgaWYgdHlwZSBvZiBmaXJzdCBwYXJhbSBpcyBzdHJpbmcgcHJpbWl0aXZlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZnJlZXplKCJhYmMiKTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3I7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmZyZWV6ZSk7CiAgICB9Cn0pOwo=","id":"15.2.3.9-1-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-1-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuOS8xNS4yLjMuOS0xLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5mcmVlemUgdGhyb3dzIFR5cGVFcnJvciBpZiB0eXBlIG9mIGZpcnN0IHBhcmFtIGlzIG5vdCBPYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5mcmVlemUoMCk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5mcmVlemUpOwogICAgfQp9KTsK","id":"15.2.3.9-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTItMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIC0gZXh0ZW5zaWJsZSBvZiAnTycgaXMgc2V0IGFzIGZhbHNlIGV2ZW4gaWYgJ08nIGhhcyBubyBvd24gcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmZyZWV6ZShvYmopOwoKICAgICAgICByZXR1cm4gIU9iamVjdC5pc0V4dGVuc2libGUob2JqKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5mcmVlemUpICYmIGZuRXhpc3RzKE9iamVjdC5pc0V4dGVuc2libGUpOwogICAgfQp9KTsK","id":"15.2.3.9-2-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTItMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIC0gaW5oZXJpdGVkIGRhdGEgcHJvcGVydGllcyBhcmUgbm90IGZyb3plbiIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHByb3RvID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgIkZhdGhlciIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBPYmplY3QuZnJlZXplKGNoaWxkKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBwcm90by5oYXNPd25Qcm9wZXJ0eSgiRmF0aGVyIik7CiAgICAgICAgZGVsZXRlIHByb3RvLkZhdGhlcjsKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gcHJvdG8uaGFzT3duUHJvcGVydHkoIkZhdGhlciIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCAmJiAhYWZ0ZXJEZWxldGVkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmZyZWV6ZSkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.9-2-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTItMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIC0gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnRpZXMgYXJlIG5vdCBmcm96ZW4iLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJGYXRoZXIiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBPYmplY3QuZnJlZXplKGNoaWxkKTsKCiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBwcm90by5oYXNPd25Qcm9wZXJ0eSgiRmF0aGVyIik7CiAgICAgICAgZGVsZXRlIHByb3RvLkZhdGhlcjsKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gcHJvdG8uaGFzT3duUHJvcGVydHkoIkZhdGhlciIpOwoKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCAmJiAhYWZ0ZXJEZWxldGVkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmZyZWV6ZSkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.9-2-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTItNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIC0gTm9uLWVudW1lcmFibGUgb3duIHByb3BlcnRpZXMgb2YgJ08nIGFyZSBmcm96ZW4iLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5mcmVlemUob2JqKTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgImZvbyIpOwoKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vIik7CiAgICAg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pOwoKICAgICAgICBkZWxldGUgb2JqLmZvbzsKICAgICAgICByZXR1cm4gb2JqLmZvbyA9PT0gMTAgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIGRlc2Mud3JpdGFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmZyZWV6ZSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.9-2-a-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtMTAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTItYS0xMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIC0gJ1AnIGlzIG93biBuYW1lZCBwcm9wZXJ0eSBvZiBhbiBBcnJheSBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0T3duUHJvcGVydHldXSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyck9iaiA9IFtdOwoKICAgICAgICBhcnJPYmouZm9vID0gMTA7IC8vIGRlZmF1bHQgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgZm9vOiB0cnVlCgogICAgICAgIE9iamVjdC5mcmVlemUoYXJyT2JqKTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKGFyck9iaiwgImZvbyIpOwoKICAgICAgICBkZWxldGUgYXJyT2JqLmZvbzsKICAgICAgICByZXR1cm4gYXJyT2JqLmZvbyA9PT0gMTAgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIGRlc2Mud3JpdGFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmZyZWV6ZSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.9-2-a-10","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtMTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTItYS0xMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIC0gJ1AnIGlzIG93biBpbmRleCBwcm9wZXJ0eSBvZiB0aGUgQXJndW1lbnRzIG9iamVjdCB0aGF0IGltcGxlbWVudHMgaXRzIG93biBbW0dldE93blByb3BlcnR5XV0iLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICAvLyBkZWZhdWx0IFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICIwIjogdHJ1ZQogICAgICAgIHZhciBhcmdPYmogPSAoZnVuY3Rpb24gKCkgeyByZXR1cm4gYXJndW1lbnRzOyB9KDEsIDIsIDMpKTsKCiAgICAgICAgT2JqZWN0LmZyZWV6ZShhcmdPYmopOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoYXJnT2JqLCAiMCIpOwoKICAgICAgICBkZW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sKICAgICAgICByZXR1cm4gc3RyT2JqWzBdID09PSAiYSIgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIGRlc2Mud3JpdGFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmZyZWV6ZSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.9-2-a-12","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtMTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTItYS0xMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIC0gJ1AnIGlzIG93biBpbmRleCBwcm9wZXJ0eSBvZiB0aGUgT2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgLy8gZGVmYXVsdCBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAiMCI6IHRydWUKICAgICAgICB2YXIgb2JqID0geyAwOiAwLCAxOiAxLCBsZW5ndGg6IDJ9OwoKICAgICAgICBPYmplY3QuZnJlZXplKG9iaik7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICIwIik7CgogICAgICAgIGRlbGV0ZSBvYmpbMF07CiAgICAgICAgcmV0dXJuIG9ialswXSA9PT0gMCAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy53cml0YWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZnJlZXplKSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.9-2-a-13","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-13.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtMTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy45LzE1LjIuMy45LTItYS0xNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZnJlZXplIC0gJ1AnIGlzIG93biBpbmRleCBwcm9wZXJ0eSBvZiBhbiBBcnJheSBvYmplY3QgdGhhdCB1c2VzIE9iamVjdCdzIFtbR2V0T3duUHJvcGVydHldXSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIC8vIGRlZmF1bHQgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgIjAiOiB0cnVlCiAgICAgICAgdmFyIGFyck9iaiA9IFswLCAxLCAyXTsKCiAgICAgICAgT2JqZWN0LmZyZWV6ZShhcnJPYmopOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoYXJyT2JqLCAiMCIpOwoKICAgICAgICBkZWxldGUgYXJyT2JqWzBdOwogICAgICAgIHJldHVybiBhcnJPYmpbMF0gPT09IDAgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IGZhbHNlICYmIGRlc2Mud3JpdGFibGUgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaX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WxldGUgY2hpbGQuZm9vOwogICAgICAgIHJldHVybiBjaGlsZC5mb28gPT09IDEwICYmIGRlc2MuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLndyaXRhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5mcmVlemUpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.9-2-a-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjkvMTUuMi4zLjktMi1hLTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmZyZWV6ZSAtICdQJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbigpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmZyZWV6ZShjaGlsZCk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihjaGlsZCwgImZvbyIpOwoKICAgICAgICBkZWxldGUgY2hpbGQuZm9vOwogICAgICAgIHJldHVybiBjaGlsZC5mb28gPT09IDEwICYmIGRlc2MuY29uZmlndXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLndyaXRhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5mcmVlemUpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.9-2-a-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjkvMTUuMi4zLjktMi1hLTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmZyZWV6ZSAtICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZnJlZXplKG9iaik7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJmb28iKTsKCiAgICAgICAgZGVsZXRlIG9iai5mb287CiAgICAgICAgcmV0dXJuIG9iai5mb28gPT09IDEwICYmIGRlc2MuY29uZmlndXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5mcmVlemUpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.9-2-a-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjkvMTUuMi4zLjktMi1hLTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmZyZWV6ZSAtICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgcHJvdG8uZm9vID0gMDsgLy8gZGVmYXVsdCBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiBmb286IHRydWUKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5mcmVlemUoY2hpbGQpOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoY2hpbGQsICJmb28iKTsKCiAgICAgICAgZGVsZXRlIGNoaWxkLmZvbzsKICAgICAgICByZXR1cm4gY2hpbGQuZm9vID09PSAxMCAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZnJlZXplKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.9-2-a-5","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjkvMTUuMi4zLjktMi1hLTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmZyZWV6ZSAtICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5mcmVlemUoY2hpbGQpOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoY2hpbGQsICJmb28iKTsKCiAgICAgICAgZGVsZXRlIGNoaWxkLmZvbzsKICAgICAgICByZXR1cm4gY2hpbGQuZm9vID09PSAxMCAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZnJlZXplKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.9-2-a-6","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-a-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuOS0yLWEtNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjkvMTUuMi4zLjktMi1hLTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmZyZWV6ZSAtICdQJyBpcyBvd24gbmFtZWQgcHJvcGVydHkgb2YgYW4gQXJndW1lbnRzIG9iamVjdCB0aGF0IGltcGxlbWVudHMgaXRzIG93biBbW0dldE93blByb3BlcnR5XV0iLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcmdPYmogPSAoZnVuY3Rpb24gKCkgeyByZXR1cm4gYXJndW1lbnRzOyB9KCkpOwoKICAgICAgICBhcmdPYmouZm9vID0gMTA7IC8vIGRlZmF1bHQgW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgZm9vOiB0cnVlCgogICAgICAgIE9iamVjdC5mcmVlemUoYXJnT2JqKTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKGFyZ09iaiwgImZvbyIpOwoKICAgICAgICBkZWxldGUgYXJnT2JqLmZvbzsKICAgICAgICByZXR1cm4gYXJnT2JqLmZvb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lZXplKG9iaik7CiAgICAgICAgdmFyIHJlczEgPSBvYmouaGFzT3duUHJvcGVydHkoImZvbyIpOwogICAgICAgIGRlbGV0ZSBvYmouZm9vOwogICAgICAgIHZhciByZXMyID0gb2JqLmhhc093blByb3BlcnR5KCJmb28iKTsKICAgICAgICB2YXIgcmVzdWx0Q29uZmlndXJhYmxlID0gKHJlczEgJiYgcmVzMik7CgogICAgICAgIHZhciByZXN1bHRHZXRGdW4gPSAob2JqLmZvbyA9PT0gMTApOwogICAgICAgIG9iai5mb28gPSAxMjsKCiAgICAgICAgdmFyIHJlc3VsdEVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICBmb3IgKHZhciBwcm9wIGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcCA9PT0gImZvbyIpIHsKICAgICAgICAgICAgICAgIHJlc3VsdEVudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiZm9vIik7CiAgICAgICAgdmFyIHJlc3VsdCA9IHJlc3VsdENvbmZpZ3VyYWJsZSAmJiByZXN1bHRFbnVtZXJhYmxlICYmIHJlc3VsdEdldEZ1biAmJiByZXN1bHRTZXRGdW47CgogICAgICAgIHJldHVybiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmZyZWV6ZSkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7","id":"15.2.3.9-2-c-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.9/15.2.3.9-2-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mosICJmb28yIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICBzZXQ6IHNldF9mdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmZyZWV6ZShvYmopOwoKICAgICAgICB2YXIgcmVzMSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vMiIpOwogICAgICAgIGRlbGV0ZSBvYmouZm9vMjsKICAgICAgICB2YXIgcmVzMiA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vMiIpOwogICAgICAgIHZhciByZXN1bHRDb25maWd1cmFibGUgPSAocmVzMSAmJiByZXMyKTsKCiAgICAgICAgdmFyIHJlc3VsdEdldEZ1biA9IChvYmouZm9vMiA9PT0gMTApOwogICAgICAgIG9iai5mb28yID0gMTI7CgogICAgICAgIHZhciByZXN1bHRFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgcHJvcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3AgPT09ICJmb28yIikgewogICAgICAgICAgICAgICAgcmVzdWx0RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBkZXNjMSA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiZm9vMSIpOwogICAgICAgIHZhciBkZXNjMiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiZm9vMiIpOwoKICAgICAgICB2YXIgcmVzdWx0ID0gcmVzdWx0Q29uZmlndXJhYmxlICYmIHJlc3VsdEVudW1lcmFibGUgJiYgcmVzdWx0R2V0RnVuICYmIHJlc3VsdFNldEZ1bjsKCiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0K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