Permalink
Browse files

adjusted test case for minimum length

  • Loading branch information...
1 parent 1a79ca4 commit 264b72da35364a7a1c78cdb8ceb6e2845c5fe438 @drd0rk committed Jan 11, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 test/test.coffee
View
@@ -22,12 +22,20 @@ vows
assert.ok topic.alphabet.length == 222
"when setting the length to":
- "1":
+ "0":
topic: () ->
strgen
"an error is thrown": (topic) ->
- assert.throws () -> topic.setLength 1
+ assert.throws () -> topic.setLength 0
+
+ "1":
+ topic: () ->
+ strgen.setLength 1
+ strgen.generate()
+
+ "we get a string of length 1": (topic) ->
+ assert.equal topic.length,1
"76":
topic: () ->

0 comments on commit 264b72d

Please sign in to comment.