{"ScriptPreparationCode":null,"TestCases":[{"Name":"switch","Code":"function test(a) {\r\n\tswitch(a) {\r\n case 0:\r\n return 0;\r\n case 1:\r\n return 0;\r\n case 2:\r\n return 0;\r\n case 3:\r\n return 0;\r\n case 4:\r\n return 0;\r\n case 5:\r\n return 0;\r\n case 6:\r\n return 0;\r\n case 7:\r\n return 0;\r\n case 8:\r\n return 0;\r\n case 9:\r\n return 0;\r\n case 10:\r\n return 0;\r\n case 11:\r\n return 0;\r\n case 12:\r\n return 0;\r\n default:\r\n return 0;\r\n }\r\n}\r\ntest(12)","IsDeferred":false},{"Name":"if-else","Code":"function test(a) {\r\n\tif (a === 0) {\r\n \treturn 0;\r\n } else if (a === 1) {\r\n \treturn 0;\r\n } else if (a === 2) {\r\n \treturn 0;\r\n } else if (a === 3) {\r\n \treturn 0;\r\n } else if (a === 4) {\r\n \treturn 0;\r\n } else if (a === 5) {\r\n \treturn 0;\r\n } else if (a === 6) {\r\n \treturn 0;\r\n } else if (a === 7) {\r\n \treturn 0;\r\n } else if (a === 8) {\r\n \treturn 0;\r\n } else if (a === 9) {\r\n \treturn 0;\r\n } else if (a === 10) {\r\n \treturn 0;\r\n } else if (a === 11) {\r\n \treturn 0;\r\n } else if (a === 12) {\r\n \treturn 0;\r\n } else {\r\n return 0;\r\n }\r\n}\r\ntest(12)","IsDeferred":false},{"Name":"map","Code":"function test(a) {\r\n const map = new Map([\r\n \t[0,0],\r\n [1,0],\r\n [2,0],\r\n [3,0],\r\n [4,0],\r\n [5,0],\r\n [6,0],\r\n [7,0],\r\n [8,0],\r\n [9,0],\r\n [10,0],\r\n [11,0],\r\n [12,0],\r\n ])\r\n\treturn map.get(a) || 0\r\n}\r\ntest(12)","IsDeferred":false}]}