Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
added some assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder committed Oct 25, 2023
1 parent 1676f5b commit bb2b1de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rse_best_practices_playground/times.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def time_range_less_precise(
if my_level == "beginner":
time_list = [1, 2, 3, 4]
print(calculate_fastest_time(time_list))
assert isinstance(calculate_fastest_time(time_list), int)
assert calculate_fastest_time(time_list) == 1
elif my_level == "pro":
large = time_range("2010-01-12 10:00:00", "2010-01-12 12:00:00")
short = time_range("2010-01-12 10:30:00", "2010-01-12 10:45:00", 2, 60)
Expand Down

0 comments on commit bb2b1de

Please sign in to comment.