Skip to content

Commit

Permalink
Update handling of equal blank nodes in CDT equality testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
kasei committed Jun 13, 2024
1 parent 9109a19 commit f454940
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions lib/AtteanX/Functions/CompositeLists.pm
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,12 @@ package AtteanX::Functions::CompositeLists::ListLiteral {
}

if ($li->does('Attean::API::Blank') and $ri->does('Attean::API::Blank')) {
$seen_error++;
next;
if ($li->value eq $ri->value) {
next;
} else {
$seen_error++;
next;
}
}
return 0 unless ($li->equals($ri));
}
Expand Down
8 changes: 6 additions & 2 deletions lib/AtteanX/Functions/CompositeMaps.pm
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,12 @@ package AtteanX::Functions::CompositeMaps::MapLiteral {
}

if ($lv->does('Attean::API::Blank') and $rv->does('Attean::API::Blank')) {
$seen_error++;
next;
if ($lv->value eq $rv->value) {
next;
} else {
$seen_error++;
next;
}
}

return 0 unless ($lv->equals($rv));
Expand Down

0 comments on commit f454940

Please sign in to comment.