diff --git a/lib/Test2/Tools/Compare.pm b/lib/Test2/Tools/Compare.pm index f2bcbef5..848b8977 100644 --- a/lib/Test2/Tools/Compare.pm +++ b/lib/Test2/Tools/Compare.pm @@ -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: Non-reference values will be compared as strings using C, 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)