Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix panic on empty cartesian tree #2

Merged
merged 3 commits into from
Jun 28, 2020
Merged

fix panic on empty cartesian tree #2

merged 3 commits into from
Jun 28, 2020

Conversation

vporoshok
Copy link
Owner

@vporoshok vporoshok commented Jun 28, 2020

On specific pairs of strings, there is a situation when the tree may be empty. A minimal example is given in the test. So we need to check the tree on empty before picking its root.

fix #1

On specific pairs of strings there is situation when tree may be empty.
The minimal example given in test. So we need to check tree on empty
before picking its root.

fix #1
@codecov
Copy link

codecov bot commented Jun 28, 2020

Codecov Report

Merging #2 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          298       300    +2     
=========================================
+ Hits           298       300    +2     
Impacted Files Coverage Δ
n-gram.go 100.00% <ø> (ø)
jaro.go 100.00% <100.00%> (ø)
levenshtein.go 100.00% <100.00%> (ø)
similarity.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07aebf3...794d4cb. Read the comment docs.

@vporoshok vporoshok merged commit 56c4817 into master Jun 28, 2020
@vporoshok vporoshok deleted the vporoshok/issue1 branch June 28, 2020 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory out of bounds w/ Jaro
1 participant