Permalink
Browse files

Generate empty arrays

  • Loading branch information...
1 parent 5e2cc62 commit ccaa9b3895f4e9ad1287c698dada689f64e28d07 @porras committed Nov 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 sample.rb
View
@@ -20,9 +20,9 @@ def sort(array)
properties 'sort' do
data do
- (0..rand(100)).map { rand(1_000_000) }
+ (rand(10) - 1).times.map { rand(1000) }
end
-
+
property 'has the same size' do |data|
assert_equal data.size, sort(data).size
end

0 comments on commit ccaa9b3

Please sign in to comment.