Skip to content

Commit

Permalink
Removed troublesome function koan. Fixes mrdavidlaing#9. Fixes mrdavi…
Browse files Browse the repository at this point in the history
…dlaing#10.

Determined "should use function body as a string" is causes more
problems than the understanding it provides.
If someone can think of a good replacement, submit it, it has been
removed until then.
  • Loading branch information
mraaroncruz committed Apr 12, 2013
1 parent 6e9e0d1 commit 27ad9ab
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions koans/AboutFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,4 @@ describe("About Functions", function() {
expect(praiseSinger.givePraise("Mary")).toBe(FILL_ME_IN);

});

it("should use function body as a string", function () {
var add = new Function("a", "b", "return a + b;");
expect(add(1, 2)).toBe(FILL_ME_IN);

var multiply = function (a, b) {
//An internal comment
return a * b;
};
expect(multiply.toString()).toBe(FILL_ME_IN);
});
});

0 comments on commit 27ad9ab

Please sign in to comment.