Permalink
Browse files

add tests for array param

  • Loading branch information...
1 parent e99b0ba commit dab2c0e735e384e4d72425300e88915b91c6cd60 @thedeeno thedeeno committed with Jan 30, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/test_faker_lorem.rb
View
@@ -46,4 +46,16 @@ def test_range_count_param
assert(2 <= ss.length && ss.length <= 5)
assert(2 <= ps.length && ps.length <= 5)
end
+
+ def test_array_count_param
+ cs = @tester.characters([1,4])
+ ws = @tester.words([1,4])
+ ss = @tester.sentences([1,4])
+ ps = @tester.paragraphs([1,4])
+
+ assert(cs.length == 1 || cs.length == 4)
+ assert(ws.length == 1 || ws.length == 4)
+ assert(ss.length == 1 || ss.length == 4)
+ assert(ps.length == 1 || ps.length == 4)
+ end
end

0 comments on commit dab2c0e

Please sign in to comment.