Skip to content

Commit

Permalink
Merge pull request kanwei#44 from keithrbennett/update_dependencies_a…
Browse files Browse the repository at this point in the history
…nd_fix_spec_warnings

Update dependencies and fix spec warnings
  • Loading branch information
kanwei authored Apr 4, 2021
2 parents da05959 + a610163 commit ec54a90
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
32 changes: 16 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@ PATH
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
rake (11.1.1)
rake-compiler (0.9.7)
diff-lcs (1.4.4)
rake (13.0.3)
rake-compiler (1.1.1)
rake
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.4)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
algorithms!
rake-compiler
rspec

BUNDLED WITH
1.11.2
2.2.10
2 changes: 1 addition & 1 deletion lib/algorithms/sort.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def self.dualpivot(container, left=0, right=container.size-1, div=3)
pivot2 = container[right]
# pointers
less = left + 1
great = right -1
great = right - 1
# sorting
k = less
while k <= great
Expand Down
2 changes: 1 addition & 1 deletion spec/deque_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
end

it "should raise ArgumentError if passed more than one argument" do
expect { @deque.class.send("new", Time.now, []) }.to raise_error
expect { @deque.class.send("new", Time.now, []) }.to raise_error(ArgumentError)
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/heap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
end

it "should not let you merge with non-heaps" do
expect { @heap.merge!(nil) }.to raise_error
expect { @heap.merge!([]) }.to raise_error
expect { @heap.merge!(nil) }.to raise_error(ArgumentError)
expect { @heap.merge!([]) }.to raise_error(ArgumentError)
end

describe "(empty)" do
Expand Down
2 changes: 1 addition & 1 deletion spec/suffix_array_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

describe "empty suffix array" do
it "should not initialize with empty string" do
expect { Containers::SuffixArray.new("") }.to raise_error
expect { Containers::SuffixArray.new("") }.to raise_error(ArgumentError)
end
end

Expand Down

0 comments on commit ec54a90

Please sign in to comment.