Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. print("Resulted: " + checkMonths("12 15 2014", "1 15 2015")) # Rollover case
  2. print("Expected: Exactly 1 month")
  3.  
  4. print("Resulted: " + checkMonths("1 15 2015", "12 15 2014")) # Reverse Rollover case
  5. print("Expected: Exactly 1 month")
  6.  
  7. print("Resulted: " + checkMonths("1 15 2014", "1 15 2016")) # Two Years
  8. print("Expected: More than 1 month")
  9.  
  10. print("Resulted: " + checkMonths("1 15 2014", "1 30 2014")) # Same month
  11. print("Expected: Less than 1 month")
  12.  
  13. print("Resulted: " + checkMonths("1 15 2015", "3 15 2015")) # More than 1 month
  14. print("Expected: More than 1 month")
  15.  
  16. print("Resulted: " + checkMonths("1 15 2015", "2 15 2015")) # Exactly 1 month
  17. print("Expected: Exactly 1 month")
  18.  
  19. print("Resulted: " + checkMonths("2 15 2015", "1 15 2015")) # Reverse Exactly 1 month
  20. print("Expected: Exactly 1 month")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement