Skip to content

Commit

Permalink
Added README
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Aug 31, 2011
1 parent 4c76f11 commit e9e104e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# contracts

Work in process.

Based on design by contract.

Motivation :

var f = function(a, b) {
return a + b;
}

var f = f.pre(function(a, b) {
a.should.be.a("number").and.above(0);
b.should.be.a("number").and.above(0);
}).post(function(ret, a, b) {
ret.should.be.equal(a + b);
});

0 comments on commit e9e104e

Please sign in to comment.