michael@0: actual = ''; michael@0: expected = 'true,'; michael@0: michael@0: function isNotEmpty(args, i) { michael@0: var o = args[i]; michael@0: if (!(o && o.length)) { michael@0: return false; michael@0: } michael@0: return true; michael@0: }; michael@0: michael@0: function f(obj) { michael@0: for (var i = 0; i < arguments.length; i++) { michael@0: if (!isNotEmpty(arguments, i)) michael@0: return false; michael@0: } michael@0: return true; michael@0: } michael@0: michael@0: appendToActual(f([1], [1], [1], "asdf", [1])); michael@0: michael@0: michael@0: assertEq(actual, expected)