Skip to content

Conversation

Ocramius
Copy link
Contributor

@codecov-io
Copy link

codecov-io commented Jun 14, 2018

Codecov Report

Merging #58 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #58   +/-   ##
=========================================
  Coverage     79.14%   79.14%           
- Complexity      122      123    +1     
=========================================
  Files            15       15           
  Lines           326      326           
=========================================
  Hits            258      258           
  Misses           68       68
Impacted Files Coverage Δ Complexity Δ
src/ScalarComparator.php 100% <100%> (ø) 16 <0> (+1) ⬆️

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 71d4a93...860253b. Read the comment docs.

['0.', '0.0', $stringException],
['0e1', '0e2', $stringException],
["\n\n\n0.0", ' 0.', $stringException],
['0.0', '25e-10000', $stringException],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can anyone here point at further scenarios that should be checked? Maybe string compared with non-string values?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"0" == "-0"

@sebastianbergmann sebastianbergmann self-assigned this Jun 14, 2018
@sebastianbergmann sebastianbergmann merged commit c4e6d5c into sebastianbergmann:master Jun 14, 2018
@sebastianbergmann sebastianbergmann changed the title Ensuring that ScalarComparator deals with extremely ugly string comparison edge cases ScalarComparator does not handle extremely ugly string comparison edge cases Jun 14, 2018
@Ocramius Ocramius deleted the fix/comparator-with-scary-strings branch June 14, 2018 14:54
@Ocramius
Copy link
Contributor Author

Thanks @sebastianbergmann!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants