Skip to content

Conversation

@kurtschelfthout
Copy link
Contributor

To address #1691.

Due to a change in FsCheck since the previously used version 2.0.3, tests run with a greater effective size (i.e. generated lists, arrays, strings etc are significantly longer). To make the tests complete in reasonable time the following changes were made.

First, the maximum size of the test runs in the CollectionModulesConsistency and AsyncModule tests was changed to 25 and 20 resp. (down from the default, 50).

Second, the haveSameElements function was optimised so it is no longer quadratic. Also note this function contained a bug: ... && ys |> ..., not xs.

Due to a change in FsCheck, tests run with a greater effective size
(i.e. generated lists, arrays, strings etc are significantly longer). To
make the tests complete in reasonable time the following changes were
made. First, the maximum size of the test runs in the
CollectionModulesConsistency and AsyncModule tests was changed to 25 and
20 resp. (down from the default, 50). Second, the `haveSameElements`
function was optimized so it is no longer quadratic. (Also note this
function contained a typo bug: `&& ys |>`, not xs.)
@msftclas
Copy link

msftclas commented Nov 6, 2016

Hi @kurtschelfthout, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@msftclas
Copy link

msftclas commented Nov 6, 2016

@kurtschelfthout, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, MSBOT;

@forki
Copy link
Contributor

forki commented Nov 6, 2016

Thanks Kurt!

@kurtschelfthout
Copy link
Contributor Author

kurtschelfthout commented Nov 6, 2016

The failure in AppVeyor, is not an FsCheck test. Not sure what to do about it.

  1. Failed : FSharp.Core.Unittests.FSharp_Core.Microsoft_FSharp_Control.AsyncModule.AwaitWaitHandle.Timeout
    Delta is too big -94
    Expected: True
    But was: False
    at FSharp.Core.Unittests.FSharp_Core.Microsoft_FSharp_Control.AsyncModule.AwaitWaitHandle.Timeout() in C:\projects\visualfsharp-3dtit\src\fsharp\FSharp.Core.Unittests\FSharp.Core\Microsoft.FSharp.Control\AsyncModule.fs:line 240

@KevinRansom
Copy link
Contributor

thanks for this.

Excellent work.

@KevinRansom KevinRansom merged commit 4202830 into dotnet:master Nov 7, 2016
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.

4 participants