Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.5.1
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      notice Enum[foo, bar, foo, bar]
      

      should produce:

      Notice: Scope(Class[main]): Enum['bar', 'foo']
      

      Show
      notice Enum[foo, bar, foo, bar] should produce: Notice: Scope(Class[main]): Enum['bar', 'foo']
    • Story Points:
      1
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      The Enum type did not make a unique set of its entries which could lead to surprises when iterating its content, that is an {{Enum[a,b,a]}} would contain 'a' twice.

      Description

      The following code:

      notice Enum[foo, bar, foo, bar]
      

      produces output:

      Notice: Scope(Class[main]): Enum['bar', 'bar', 'foo', 'foo']
      

      Expected output:

      Notice: Scope(Class[main]): Enum['bar', 'foo']
      

      As the values should be in lexicographic ordering and unique.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  peter.huene Peter Huene
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support