my result is way off for one of the tests. I have no idea why. Sorry i can’t give a more detailed explanation.
Replit: boilerplate-probability-calculator - Replit
EDIT: i can’t link on a reply apparently so here’s a new untouched boilerplate with prob_calculator.random.seed(95)
still there
https://replit.com/@FedericoPieruzz/boilerplate-probability-calculator-1#main.py
Giving us more information help us understand what’s going on more quickly.
Did you add this line in main.py
?
prob_calculator.random.seed(95)
You shouldn’t be setting the random seed at all.
all(ball in draw for ball in expected)
Does this condition actually do what you expect? I don’t think it checks for agreement in the number of balls of each color drawn.
No, i didn’t add that. that comes with the boilerplate
Jagaya
June 16, 2022, 8:42pm
4
Not really - that line should be within the test_module.py
, it shouldn’t be in the main.py
.
I’m not on pc right now but i’ll clone a fresh untouched boilerplate when i can and it’ll be there
That apparently was added about a month ago. No clue why, as it doesn’t belong there, imho.
In any case, it isn’t sanguine to my other point, which you didn’t seem to notice:
1 Like
i can’t link on a reply apparently so here’s a new untouched boilerplate with prob_calculator.random.seed(95)
still there
https://replit.com/@FedericoPieruzz/boilerplate-probability-calculator-1#main.py
Yes…
Not sanguine to fixing the code though. I think your counting of good tests is not valid.
2 Likes
it’s not that i didn’t notice, i’m just still looking for other ways to do the check
system
Closed
December 16, 2022, 10:59am
11
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.