Skip to content

Commit

Permalink
composition test added
Browse files Browse the repository at this point in the history
  • Loading branch information
jostylr committed May 12, 2012
1 parent 2c2adcc commit b972ea3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scheem/pretest/runT.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ var data = {
'(% 3 4)': {
inp: ['(% 3 4)'],
out: 3
},
'(* (+ 3 4) 5)': {
inp: ['(* (+ 3 4) 5)'],
out: 35
}
},
quote: {
Expand Down
8 changes: 8 additions & 0 deletions scheem/test/runT.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ test("(% 3 4)", function () {
}
});

test("(* (+ 3 4) 5)", function () {
var result = suites.arith.apply(null, ['(* (+ 3 4) 5)']);
var pass = _.isEqual(result, 35);
if (!pass) {
throw new Error(util.inspect(result) + " not equal to " + "35" + "\n Input: ['(*(+34)5)']");
}
});

suite("quote");

test("'(1 2 3)", function () {
Expand Down

0 comments on commit b972ea3

Please sign in to comment.