You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Activity
certik commentedon Feb 17, 2024
The test is flaky:
lpython/integration_tests/test_random_02.py
Line 9 in 496f29e
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.
ubaidsk commentedon Feb 17, 2024
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?
certik commentedon Feb 17, 2024
Just test it in some way that is robust in LPython as well, to ensure that everything works.
syheliel commentedon Feb 18, 2024
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
certik commentedon Feb 18, 2024
I think this is fixed now.