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

fix random number generation used for spatial tests

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • 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. LUCENE-7185_polygon.patch
          58 kB
          Robert Muir
        2. LUCENE-7185_sorting.patch
          6 kB
          Robert Muir
        3. LUCENE-7185.patch
          4 kB
          Robert Muir
        4. newRandom.png
          178 kB
          Robert Muir
        5. oldRandom.png
          57 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated: