예제 #1
0
def main(argv):
    test1 = [100, [1, 5, 10, 25]]
    test2 = [200, [1, 5, 10, 25]]

    isCorrect = True
#    student = problemSet.Correct()

    test1_correct = str(correct_changes(test1[0], test1[1]))
    test1_student = str(student.changes(test1[0], test1[1]))
    print "Correct Output: " + test1_correct
    print "Your Output: "    + test1_student 
    if compare(test1_correct, test1_student):
        print "Correct!"
    else:
        print "Incorrect"
        isCorrect = False

    test2_correct = str(correct_changes(test2[0], test2[1]))
    test2_student = str(student.changes(test2[0], test2[1]))
    print "Correct Output: " + test2_correct
    print "Your Output: "    + test2_student 
    if compare(test2_correct, test2_student):
        print "Correct!"
    else:
        print "Incorrect"
        isCorrect = False