Skip to content

equivalence: _same_commarea compares PIC X COMMAREA fields by Decimal, so differing bytes read as equal #7486

Closed

Description

@squid-protocol

_same_commarea (tests/tools/equivalence_cics.py:4526) tries Decimal(str(a)) == Decimal(str(b)) before comparing text, so " 1" equals "0000000001". UPDCUST mutant ab6f13f763 (deletes MOVE CUSTOMER-NUMBER TO COMM-CUSTNO) leaves different bytes on custno-leading-spaces, and the proof says equal. COMM-CUSTNO and COMM-SCODE are exposed.

Fix: compare by picture, bytes for alphanumeric and value only for numeric. Expect stated equivalent mutants to die and possibly real differences to appear.

Activity

  1. added
    bug
    priority: high
    on Nov 1, 2026
  2. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-03T16:02Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaim:melekpriority: high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions