Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Generate empty arrays

  • Loading branch information...
commit ccaa9b3895f4e9ad1287c698dada689f64e28d07 1 parent 5e2cc62
@porras authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sample.rb
View
4 sample.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.