From 033c3f196dddb19244ff24e4daf4c0b52404ef95 Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Sun, 28 Apr 2013 15:23:35 -0700 Subject: [PATCH] Parsimonious testing. --- test/01_basics_mocha.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/01_basics_mocha.coffee b/test/01_basics_mocha.coffee index faa352f..b42b476 100644 --- a/test/01_basics_mocha.coffee +++ b/test/01_basics_mocha.coffee @@ -98,8 +98,7 @@ describe "Basic Functionality", -> for data in test_data do (data) -> it "should work with #{data.description}", -> - r = tumble(data.input) - r = parse(r, data.data) + r = parse(tumble(data.input), data.data) r.should.equal data.output describe "Check for recursion", -> @@ -112,8 +111,7 @@ describe "Check for recursion", -> do (data) -> it "should catch an exception", -> try - r = tumble(data.input) - r = parse(r, data.data) + r = parse(tumble(data.input), data.data) assert.ok false, "It did not throw the exception" catch err assert.ok err.id == 'recursion-error', "Recursion depth exeception thrown."