Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7185

fix random number generation used for spatial tests

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The current method is not very good for testing.

      • It will only rarely or never return edge cases like -180/180/-90/90
      • It will only rarely return 0
      • There are many possible doubles within the ranges (-180..180/-90..90) it will never return

        Attachments

        1. oldRandom.png
          57 kB
          Robert Muir
        2. newRandom.png
          178 kB
          Robert Muir
        3. LUCENE-7185_polygon.patch
          58 kB
          Robert Muir
        4. LUCENE-7185_sorting.patch
          6 kB
          Robert Muir
        5. LUCENE-7185.patch
          4 kB
          Robert Muir

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: