You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2016/04/06 23:09:25 UTC

[jira] [Commented] (LUCENE-7185) fix random number generation used for spatial tests

    [ https://issues.apache.org/jira/browse/LUCENE-7185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229115#comment-15229115 ] 

Michael McCandless commented on LUCENE-7185:
--------------------------------------------

+1, this is great :)

> fix random number generation used for spatial tests
> ---------------------------------------------------
>
>                 Key: LUCENE-7185
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7185
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-7185.patch
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org