Skip to content

Commit

Permalink
adds simple nil specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremytregunna committed Oct 31, 2011
1 parent 5369ccd commit aa9df63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/nil/control-flow-spec.io
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
describe("nil Control Flow",
it("evaluates the argument to ifNilEval",
nil ifNilEval(42) verify(== 42)
)

it("returns false when receiving and",
nil and(42) verify(== nil)
)

it("returns the argument to or",
nil or(42) verify(== 42)
)
)
5 changes: 5 additions & 0 deletions core/nil/nil-spec.io
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe("nil",
it("has a single instance",
nil clone uniqueId verify(== nil uniqueId)
)
)

0 comments on commit aa9df63

Please sign in to comment.