Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #284 from garu/patch-1
Browse files Browse the repository at this point in the history
reword note on numeric comparisons.
  • Loading branch information
exodist authored Nov 27, 2023
2 parents 184d24b + 8775701 commit ffa47ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Test2/Tools/Compare.pm
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,8 @@ refers back to itself at some point. If this happens, an exception will be
thrown to break an otherwise infinite recursion.
B<Note>: Non-reference values will be compared as strings using C<eq>, so that
means '2.0' and '2' will match.
means strings '2.0' and '2' will not match, but numeric 2.0 and 2 will, since
they are both stringified to '2'.
=item $bool = isnt($got, $expect)
Expand Down

0 comments on commit ffa47ac

Please sign in to comment.