# THIS CODE IS SUPPOSED TO: Gets two numbers from the user, and # returns the remainder of dividing the second number by the first. # Hint: the modulus operator, %, returns the remainder of a # division. For example, 7 % 3 returns 1, because 7 divided by 3 # yields 6, and the remainder when we subtract 6 from 7 is 1. # It has a bug; try to write test cases to reveal the bug # # Do not look at the code. # You only need a specification to create test cases. # def template(number1, number2): result = number1 % number2 return result actualResults = [] expectedResults = [] #WRITE YOUR TESTS BELOW FOLLOWING THE FORMAT actualResults.append(template(1,1)) expectedResults.append(0) #===================================# ctr = 0 found = False while ctr < len(actualResults): actual = actualResults[ctr] expected = expectedResults[ctr] print(str(expected) + " : " + str(actual)) if (actual != expected): found = True ctr = ctr + 1 if (found == True): print("Your test suite found the bug!!") else: print("Try writing more tests, you didn't find the bug yet.")