From 0cf3487160ce2dec7298cee384e3e050f1472474 Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Wed, 12 Jul 2017 12:37:50 +0200 Subject: [PATCH] Any (<=) Any should always be True, not False Unlike Any (<) Any is always False. Caught while overhauling subset tests. This e.g. fixes set() (<=) SetHash.new. This is *not* the same cod path as set() (<=) set(), as that will return True based on the fact that the nqp::eqaddr() test fires. --- src/core/Rakudo/QuantHash.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Rakudo/QuantHash.pm b/src/core/Rakudo/QuantHash.pm index c4106dbf2e6..1060cc40172 100644 --- a/src/core/Rakudo/QuantHash.pm +++ b/src/core/Rakudo/QuantHash.pm @@ -1443,7 +1443,7 @@ my class Rakudo::QuantHash { ($braw := $b.RAW-HASH) && nqp::elems($braw), # nothing in A, all elems in B should be >= 0 Rakudo::QuantHash.MIX-ALL-POSITIVE($braw), - False # nothing in A nor B + True # nothing in A nor B ) ) )