We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2dde28 + 29080bb commit 734dfcaCopy full SHA for 734dfca
lib/Value/Union.pm
@@ -268,10 +268,13 @@ sub isReduced {
268
if ($x->intersects($y)) {$error = "overlaps"; last}
269
if (($x + $y)->reduce->type ne 'Union') {$error = "uncombined intervals"; last}
270
}
271
- if ($S.length) {
+ if ($S->length) {
272
foreach my $x (@{$sU->{data}}) {
273
my $y = ($x + $S)->reduce;
274
- if ($y->type ne 'Union' || $y->length != $S->length) {$error = "uncombined sets"; last}
+ if ($y->type ne 'Union' && ($y->type ne 'Set' || $y->length == $S->length)) {
275
+ $error = "uncombined sets";
276
+ last;
277
+ }
278
279
280
$error = "overlaps in sets" if !$error && $S->intersects($U);
0 commit comments