u/Ilikesmart_ok

CS50P: Failing one check in the pset5/test_fuel task and can't debug my way out of it
▲ 1 r/cs50

CS50P: Failing one check in the pset5/test_fuel task and can't debug my way out of it

Hey all,

So the check I'm failing is:

https://preview.redd.it/ftqxpp5phpvg1.png?width=755&format=png&auto=webp&s=1fe0e77f4d4582fa867f1d842212cdd5859b1f80

Upon debugging I did notice I need to treat decimals with .5 separately as round() was rounding 10.5% to 10% instead of 11%, otherwise all seems well. check50 doesn't show me what numbers it tests so I don't know how else to figure out what inputs it's not evaluating correctly. Any insight?

TIA!

reddit.com
u/Ilikesmart_ok — 4 days ago
▲ 6 r/cs50

CS50P: Failing a test on the test_twttr task (pset5) though all file seems to work correctly.

Hey all,

So like the title says, I'm running the check50 for this task and it keeps failing the 2nd test. As per the error message, it seems the correct `twttr.py` does not pass all the tests in the `test_twttr.py`, except it does. So what gives? I'd appreciate some guidance here on what to check/fix.

The error message:

https://preview.redd.it/l79m91tszfvg1.png?width=973&format=png&auto=webp&s=ed77d2a7a1009cfa60087f84b206207139b6a309

Thank you.

reddit.com
u/Ilikesmart_ok — 5 days ago