{"ScriptPreparationCode":"class Host {\r\n A = 1;\r\n B = 2;\r\n C = 3;\r\n}\r\n\r\nvar host = new Host();\r\n\r\nvar x = Math.floor(Math.random() * 3);\r\n\r\nfunction testObject(h, p) {\r\n const obj = {\r\n [h.A]: 1,\r\n [h.B]: 2,\r\n [h.C]: 3,\r\n }\r\n\r\n return obj[p];\r\n}\r\n\r\n\r\nfunction testIfElse(h, p) {\r\n var v = 0;\r\n if (p === h.A) {\r\n v = 1;\r\n } else if (p === h.B) {\r\n v = 2;\r\n } else if (p === h.C) {\r\n v = 3;\r\n }\r\n return v;\r\n}","TestCases":[{"Name":"object","Code":"testObject(host, x);","IsDeferred":false},{"Name":"if-else","Code":"testIfElse(host, x);","IsDeferred":false}]}