{"ScriptPreparationCode":"var str = \u0027abcdef\u0027;\r\nstr = str.charAt(Math.floor(Math.random() * 6));\r\nfunction fn1() {return \u0027one\u0027};\r\nfunction fn2() {return \u0027two\u0027};\r\nfunction fn3() {return \u0027three\u0027};\r\nvar objLiteral = {\r\n a: fn1,\r\n b: fn2,\r\n c: fn3,\r\n d: fn1,\r\n e: fn2,\r\n f: fn3\r\n};\r\nfunction switchFn(s) {\r\n switch (s) {\r\n case \u0027a\u0027: return fn1();\r\n case \u0027b\u0027: return fn2();\r\n case \u0027c\u0027: return fn3();\r\n case \u0027d\u0027: return fn1();\r\n case \u0027e\u0027: return fn2();\r\n case \u0027f\u0027: return fn3();\r\n }\r\n}","TestCases":[{"Name":"Switch","Code":"\r\nswitchFn(str);","IsDeferred":false},{"Name":"Object Literal","Code":"\r\n\r\nobjLiteral[str]();","IsDeferred":false}]}