Skip to content

ExDM - LambdaSyntaxTest could fail #443

@mpostol

Description

@mpostol

Describe the problem

From @Tycjan-Fortuna-IT we have got the following message as a part of pr #442 :

During the regular rebuilding and running tests to see if I did not destroy anything, I found an additional issue with the testing method LambdaSyntaxTest inside the class

TP.ExDM.FunctionalProgramming.AnonymousFunctionsUnitTest.

There is a small percentage that this test fails, it is probably due to the usage of the Random class to obtain random numbers and their usage in this test considering the _tolerance variable used in the boolean expression _count > _length / 2 - _tolerance && _count < _length / 2 + _tolerance

Describe the solution you'd like

I agree; it could happen. We must review the issue and propose a fix. I'm not sure about the priority of this issue.

Metadata

Metadata

Assignees

Labels

RefactoringMaintenance activities -only unimportant changes are expected.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions