Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add tests for array param

  • Loading branch information...
commit dab2c0e735e384e4d72425300e88915b91c6cd60 1 parent e99b0ba
@thedeeno thedeeno authored committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/test_faker_lorem.rb
View
12 test/test_faker_lorem.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.