#1210 intersection method broken for circular queue class.

v4.2.0
closed
Rick McGuire
None
complete
1
2014-04-15
2013-11-21
Rick McGuire
No

The intersection method for the circularqueue class is broken because the method is getting a an error when it tries to create a new circular queue object without specifying a size.

Discussion

  • Rick McGuire
    Rick McGuire
    2013-11-21

    Here's a simple way of recreating:

    say .circularqueue~of(1,2,5)~intersection(.circularqueue~of(2,3,4))

     
  • Rick McGuire
    Rick McGuire
    2013-11-21

    Committed revision [r9531]

    A doc update is still required to indicate that circular queue overrides intersection and that the returned queue will have the same size as the receiving queue.

     

    Related

    Commit: [r9531]

  • Rick McGuire
    Rick McGuire
    2013-12-02

    • status: accepted --> pending
    • Pending work items: tests --> complete
     


Anonymous


Cancel   Add attachments