We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8253fc6 + 44407c0 commit f3920eeCopy full SHA for f3920ee
spec/heap_spec.rb
@@ -38,7 +38,7 @@
38
before(:each) do
39
@random_array = []
40
@num_items = 100
41
- @num_items.times { |x| @random_array << rand(@num_items) }
+ @num_items.times { @random_array << rand(@num_items) }
42
@heap = Containers::MaxHeap.new(@random_array)
43
end
44
spec/sort_spec.rb
@@ -15,7 +15,7 @@
15
16
it "should work for a container of size 1" do
17
one_array = [1]
18
- @sorts.each { |sort| Sort.send(sort, one_array).should eql(one_array) }
+ @sorts.each { |sort| Sort.send(sort, one_array).should eql([1]) }
19
20
21
it "should work for random arrays of numbers" do
@@ -26,4 +26,4 @@
26
@sorts.each { |sort| Sort.send(sort, rand_array.dup).should eql(sorted_array) }
27
28
29
-end
+end
0 commit comments