Python Forum
Subtle Bug I really don't see in Autograder: Exercise 3.1
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subtle Bug I really don't see in Autograder: Exercise 3.1
#6
(Dec-21-2020, 09:15 PM)benante3 Wrote: Hey man,trust me, your judgmental post doesn't really help.I did bothered to test the program more than once,I couldn't figure out what the problem was,that's why I asked.If you have some issues with yourself just don't answer at all
You were under the impression that your program worked, and couldn't understand why it didn't pass. A test with overtime and a different rate would show that your program was not computing the correct value. Once you knew that I'm sure you would quickly zero in on the problem. I am not being judgmental, just saying that proper testing is how you find problems. You obviously did not test the code very well or you would have found the problem yourself. Make more test cases to exercise all the code. This code requires a minimum of 6 tests. Time = 40 hours, time < 40 hours, time > 40 hours. Each time computed with two different rates. I would also test with time = 0 and rate = 0. If this was real code you would also test for negative cases and you would test the input.
Reply


Messages In This Thread
RE: Subtle Bug I really don't see in Autograder: Exercise 3.1 - by deanhystad - Dec-21-2020, 11:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A bug in my school's autograder DontPanic 1 1,639 Oct-14-2020, 09:04 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020