| test.py | |
|---|---|
| 1 | import main |
| 2 | |
| 3 | my_day = 1 |
| 4 | other_day = 1 |
| 5 | my_hour = 0 |
| 6 | other_hour = 0 |
| 7 | |
| 8 | testoutput = open("test_output.txt", "w" , encoding="utf-8") |
| 9 | |
| 10 | for i in range(31): |
| 11 | |
| 12 | for j in range(31): |
| 13 | |
| 14 | print("------------------------------------------------------------", file=testoutput) |
| 15 | print(" ", file=testoutput) |
| 16 | print ("My day of month: " + str(my_day), file=testoutput) |
| 17 | print ("Other user's day of month: " + str(other_day), file=testoutput) |
| 18 | print(" ", file=testoutput) |
| 19 | print("Begin exhaustive test:", file=testoutput) |
| 20 | |
| 21 | for k in range(24): |
| 22 | |
| 23 | for l in range(24): |
| 24 | print(" ", file=testoutput) |
| 25 | print("My hour: " + str(my_hour), file=testoutput) |
| 26 | print("Other user's hour: " + str(other_hour), file=testoutput) |
| 27 | print("Time Difference: " + main.get_hr_diff(my_day, other_day, my_hour, other_hour), file=testoutput) |
| 28 | print(" ", file=testoutput) |
| 29 | |
| 30 | other_hour += 1 |
| 31 | |
| 32 | other_hour = 0 |
| 33 | my_hour += 1 |
| 34 | |
| 35 | my_hour = 0 |
| 36 | other_day += 1 |
| 37 | |
| 38 | other_day = 0 |
| 39 | my_day += 1 |
| 40 | |
| 41 | testoutput.close() |