From 877570189fb76cc0cab97a08a25427df36a38b3a Mon Sep 17 00:00:00 2001 From: "Breno G. de Oliveira" Date: Sun, 26 Nov 2023 17:12:39 -0300 Subject: [PATCH] reword note on numeric comparisons. --- lib/Test2/Tools/Compare.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)