Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Resulted: " + checkMonths("12 15 2014", "1 15 2015")) # Rollover case
- print("Expected: Exactly 1 month")
- print("Resulted: " + checkMonths("1 15 2015", "12 15 2014")) # Reverse Rollover case
- print("Expected: Exactly 1 month")
- print("Resulted: " + checkMonths("1 15 2014", "1 15 2016")) # Two Years
- print("Expected: More than 1 month")
- print("Resulted: " + checkMonths("1 15 2014", "1 30 2014")) # Same month
- print("Expected: Less than 1 month")
- print("Resulted: " + checkMonths("1 15 2015", "3 15 2015")) # More than 1 month
- print("Expected: More than 1 month")
- print("Resulted: " + checkMonths("1 15 2015", "2 15 2015")) # Exactly 1 month
- print("Expected: Exactly 1 month")
- print("Resulted: " + checkMonths("2 15 2015", "1 15 2015")) # Reverse Exactly 1 month
- print("Expected: Exactly 1 month")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement