8000 UnoCore: use correct return type on Random.NextDouble() by mortend · Pull Request #337 · fuse-open/uno · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

UnoCore: use correct return type on Random.NextDouble() #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

mortend
Copy link
Member
@mortend mortend commented Jun 1, 2020

This fixes #335.

@mortend mortend merged commit 7043746 into fuse-open:master Jun 1, 2020
@mortend mortend deleted the random branch June 1, 2020 21:53
mortend added a commit to mortend/uno that referenced this pull request Jun 3, 2020
After we corrected the return type of Random.NextDouble() in fuse-open#337, one test
started failing (silently due to the other regression).

    Assertion failed in 'Pow', at /home/travis/build/mortend/uno/lib/UnoCore/Tests/Math.Test.uno:552
      Expected: 579968040960.0000000
      But got : 579967451136.0000000

Using NextFloat() instead fixes the test, because NextDouble() used to return
float before fuse-open#337.
@mortend mortend mentioned this pull request Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Random.NextDouble() returns float
1 participant
0