-
Notifications
You must be signed in to change notification settings - Fork 167
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
test random failed #2542
Comments
The test is flaky:
I thought we already tackled this issue before with @Shaikh-Ubaid in LFortran. One must test random numbers using tests designed for random numbers: they pass with very high probability (=every time in practice). The above test is low probability, that one can even trigger a failure at a CI. So that's a bad test. We need to improve it. |
A good test exists in LFortran. The test in LPython was more for completeness or as measure of extra safety. Since, it already has tests in LFortran, do we still need to add a similar test for LPython? |
Just test it in some way that is robust in LPython as well, to ensure that everything works. |
I have added a PR for it. The new testcase's aim is to test whther the distribution is uniform. I think it's a more valuable test compared to original version |
I think this is fixed now. |
https://github.com/lcompilers/lpython/actions/runs/7939986580/job/21680720142?pr=2540
The text was updated successfully, but these errors were encountered: