var codeMelon = codeMelon || {};

(function(_c) {
    _c.utils = _c.utils || {};

    test( "dedupe test", function() {
        var arr = ['cat', 'dog', 'man', 'cat', 'mouse', 'dog'],
            result = _c.utils.uniq(arr),
            i;

        strictEqual(result.length, arr.length - 2, "correct number of elements eliminated");
        for (i = 0; i < arr.length; i++) {
            ok(result.indexOf(arr[i]) > -1, "result contains all items in original array");
        }
    });
})(codeMelon);

@@ -97,16 +97,25 @@
 upe test
+ on array
 %22, funct
@@ -489,16 +489,426 @@
     %7D);%0A
+    test( %22dedupe test on string%22, function() %7B%0A        var testcase = 'abcabcdef',%0A            result = _c.utils.uniq(testcase),%0A            i;%0A%0A        strictEqual(result.length, testcase.length - 3, %22correct number of characters eliminated%22);%0A        for (i = 0; i %3C testcase.length; i++) %7B%0A            ok(result.indexOf(testcase%5Bi%5D) %3E -1, %22result contains all items in original string%22);%0A        %7D%0A    %7D);%0A
 %7D)(codeM

Test uniq when string is input.