{"ScriptPreparationCode":" var getFormattedDurationA = function(duration) {\r\n var formattedTime = [\r\n (\u00270\u0027 \u002B duration.minutes()).slice(-2),\r\n (\u00270\u0027 \u002B duration.seconds()).slice(-2)\r\n ];\r\n if (duration.hours() \u003E 0) {\r\n formattedTime.unshift(duration.hours());\r\n }\r\n return formattedTime.join(\u0027:\u0027);\r\n }\r\n\r\n var getFormattedDurationB = function(duration) {\r\n var formattedTime = [\r\n (duration.minutes() \u003E 9 ? \u00270\u0027 : \u0027\u0027) \u002B duration.minutes(),\r\n (duration.seconds() \u003E 9 ? \u00270\u0027 : \u0027\u0027) \u002B duration.seconds()\r\n ];\r\n if (duration.hours() \u003E 0) {\r\n formattedTime.unshift(duration.hours());\r\n }\r\n return formattedTime.join(\u0027:\u0027);\r\n }\r\n\r\n var getFormattedDurationC = function(duration) {\r\n return moment.utc(duration.asMilliseconds()).format((duration.hours() \u003E 0 ? \u0027H:\u0027 : \u0027\u0027) \u002B \u0027mm:ss\u0027);\r\n }\r\n \r\nvar duration1 = moment.duration(1000*60*60 * 2.5);\r\nvar duration2 = moment.duration(1000*60*60 * 23.5);\r\nvar duration3 = moment.duration(1000*60*60 * 24.5);","TestCases":[{"Name":"getFormattedDurationA-1","Code":"return getFormattedDurationA(duration1);","IsDeferred":false},{"Name":"getFormattedDurationA-2","Code":"return getFormattedDurationA(duration2);","IsDeferred":false},{"Name":"getFormattedDurationA-3","Code":"return getFormattedDurationA(duration3);","IsDeferred":false},{"Name":"getFormattedDurationB-1","Code":"return getFormattedDurationB(duration1);","IsDeferred":false},{"Name":"getFormattedDurationB-2","Code":"return getFormattedDurationB(duration2);","IsDeferred":false},{"Name":"getFormattedDurationB-3","Code":"return getFormattedDurationB(duration3);","IsDeferred":false},{"Name":"getFormattedDurationC-1","Code":"return getFormattedDurationC(duration1);","IsDeferred":false},{"Name":"getFormattedDurationC-2","Code":"return getFormattedDurationC(duration2);","IsDeferred":false},{"Name":"getFormattedDurationC-3","Code":"return getFormattedDurationC(duration3);","IsDeferred":false}]}