Skip to content

copilot-core: Test property purports to test type size but instead tests type length #784

Closed

Description

@ivanperez-keera

Description

The test property copilot-core:Test.Copilot.Core.Type.testTypeSize1 claims, in its name, in the Haddock comment that accompanies it, and in the property description as part of the property group, that it tests typeSize. However, its implementation tests typeLength.

The property should test the function it is expected to be testing.

Type

  • Bug: Property does not actually test desired functionality.

Additional context

None.

Requester

  • Ivan Perez.

Method to check presence of bug

It can be checked by visual examination of the module copilot-core:Test.Copilot.Core.Type and, specifically, the Haddock comment and the property description that accompany testTypeSize1, as well as its code. The property description indicates:

    , testProperty "typeSize matches full array size for 1-dimensional arrays"
        testTypeSize1

The haddock comment consistently indicates:

-- | Test that the size of an array is as expected.

However, the implementation reads:

testTypeSize1 = property $ typeLength a == 3

Expected result

All property names, descriptions and comments in copilot-core are consistent with the functionality they test.

Desired result

The property copilot-core:Test.Copilot.Core.Type.testTypeSize1 actually tests typeSize.

Proposed solution

Modify copilot-core:Test.Copilot.Core.Type.testTypeSize1 to use typeSize instead of typeLength.

Further notes

None.

Activity

  1. added
    CR:Type:BugAdmin only: Change request pertaining to error detected
    CR:Status:InitiatedAdmin only: Change request that has been initiated
    on Oct 17, 2026
  2. ivanperez-keera commented on Oct 18, 2026

    @ivanperez-keera
    MemberAuthor

    Change Manager: Confirmed that the issue exists.

  3. added
    CR:Status:ConfirmedAdmin only: Change request that has been acknowledged by the change manager
    and removed
    CR:Status:InitiatedAdmin only: Change request that has been initiated
    on Oct 18, 2026
  4. ivanperez-keera commented on Oct 18, 2026

    @ivanperez-keera
    MemberAuthor

    Technical Lead: Confirmed that the issue should be addressed.

  5. added
    CR:Status:AcceptedAdmin only: Change request accepted by technical lead
    and removed
    CR:Status:ConfirmedAdmin only: Change request that has been acknowledged by the change manager
    on Oct 18, 2026
  6. ivanperez-keera commented on Oct 18, 2026

    @ivanperez-keera
    MemberAuthor

    Technical Lead: Issue scheduled for fixing in Copilot 4.8.2.

    Fix assigned to: @ivanperez-keera.

  7. added
    CR:Status:ScheduledAdmin only: Change requested scheduled
    and removed
    CR:Status:AcceptedAdmin only: Change request accepted by technical lead
    on Oct 18, 2026
  8. added this to the 4.8.2 milestone on Oct 18, 2026
  9. added
    CR:Status:ImplementationAdmin only: Change request that is currently being implemented
    and removed
    CR:Status:ScheduledAdmin only: Change requested scheduled
    on Oct 18, 2026
  10. ivanperez-keera commented on Oct 18, 2026

    @ivanperez-keera
    MemberAuthor

    Implementor: Solution implemented, review requested.

  11. added
    CR:Status:VerificationAdmin only: Change request that is currently being verified
    and removed
    CR:Status:ImplementationAdmin only: Change request that is currently being implemented
    on Oct 18, 2026
  12. ivanperez-keera commented on Oct 18, 2026

    @ivanperez-keera
    MemberAuthor

    Change Manager: Verified that:

    • Solution is implemented:
    • Implementation is documented. Details:
      No updates needed; change is internal to a property and made in part to match existing documentation.
    • Change history is clear.
    • Commit messages are clear.
    • Changelogs are updated.
    • Examples are updated. Details:
      No updates needed; change is to the tests and does not affect existing examples.
    • Author is internal or has provided signed CLA.
    • Required version bumps are evaluated. Details:
      Bump not needed; change is to the tests and does not affect public API.
  13. ivanperez-keera commented on Oct 18, 2026

    @ivanperez-keera
    MemberAuthor

    Change Manager: Implementation ready to be merged.

  14. added
    CR:Status:ClosedAdmin only: Change request that has been completed
    and removed
    CR:Status:VerificationAdmin only: Change request that is currently being verified
    on Oct 18, 2026
  15. added a commit that references this issue on Oct 18, 2026
    08f6b96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

CR:Status:ClosedAdmin only: Change request that has been completedCR:Type:BugAdmin only: Change request pertaining to error detected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions