Uploaded image for project: 'CYPRESS Issue Tracker'
  1. CYPRESS Issue Tracker
  2. CYPRESS-259

Median Calculation Algorithm producing incorrect results

    Details

    • Type: Implementation Problem
    • Status: Closed
    • Priority: Minor
    • Resolution: Delivered
    • Labels:
    • Solution:
      Fixed median calculation algorithm, added tests to confirm fix works in all cases. Fixed in Cyprss 2.4.1
    • Impact:
      Tests that need to calculate median values sometimes return incorrect results.

      Description

      Due to the way integers are rounded, Cypress may return an incorrect value when calculating medians on sets with an odd number of elements.

        Attachments

          Activity

            People

            • Assignee:
              ssayer Samuel Sayer
              Reporter:
              ssayer Samuel Sayer
            • Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Comment Posted On: