{"ScriptPreparationCode":null,"TestCases":[{"Name":"not string","Code":"function isEmpty(string) {\r\n return !string;\r\n}\r\n\r\nconst text = \u0027This is an example of a non empty string\u0027;\r\nconst empty = \u0027\u0027;\r\n\r\nconst test1 = isEmpty(text);\r\nconst test2 = isEmpty(empty);","IsDeferred":false},{"Name":"length is 0","Code":"function isEmpty(string) {\r\n return string.length === 0;\r\n}\r\n\r\nconst text = \u0027This is an example of a non empty string\u0027;\r\nconst empty = \u0027\u0027;\r\n\r\nconst test1 = isEmpty(text);\r\nconst test2 = isEmpty(empty);","IsDeferred":false},{"Name":"not length","Code":"function isEmpty(string) {\r\n return !string.length;\r\n}\r\n\r\nconst text = \u0027This is an example of a non empty string\u0027;\r\nconst empty = \u0027\u0027;\r\n\r\nconst test1 = isEmpty(text);\r\nconst test2 = isEmpty(empty);","IsDeferred":false},{"Name":"string equals empty string","Code":"function isEmpty(string) {\r\n return string === \u0027\u0027;\r\n}\r\n\r\nconst text = \u0027This is an example of a non empty string\u0027;\r\nconst empty = \u0027\u0027;\r\n\r\nconst test1 = isEmpty(text);\r\nconst test2 = isEmpty(empty);","IsDeferred":false},{"Name":"string soft equals empty string","Code":"function isEmpty(string) {\r\n return string == \u0027\u0027;\r\n}\r\n\r\nconst text = \u0027This is an example of a non empty string\u0027;\r\nconst empty = \u0027\u0027;\r\n\r\nconst test1 = isEmpty(text);\r\nconst test2 = isEmpty(empty);","IsDeferred":false},{"Name":"not boolean","Code":"function isEmpty(string) {\r\n return !Boolean(string);\r\n}\r\n\r\nconst text = \u0027This is an example of a non empty string\u0027;\r\nconst empty = \u0027\u0027;\r\n\r\nconst test1 = isEmpty(text);\r\nconst test2 = isEmpty(empty);","IsDeferred":false},{"Name":"length soft equals 0","Code":"function isEmpty(string) {\r\n return string.length == 0;\r\n}\r\n\r\nconst text = \u0027This is an example of a non empty string\u0027;\r\nconst empty = \u0027\u0027;\r\n\r\nconst test1 = isEmpty(text);\r\nconst test2 = isEmpty(empty);","IsDeferred":false}]}