# HG changeset patch # User Paul Boddie # Date 1373840114 -7200 # Node ID b9abe915b987a51810874f970c12301503b65e08 # Parent 146ac9008e8b5ae1bdf202f23b23715c579c1927 Moved various test cases into the failure section, replacing them in the success section with adjusted versions that should work. diff -r 146ac9008e8b -r b9abe915b987 tests/test_recurrence.py --- a/tests/test_recurrence.py Mon Jul 15 00:06:51 2013 +0200 +++ b/tests/test_recurrence.py Mon Jul 15 00:15:14 2013 +0200 @@ -56,11 +56,17 @@ print s print "->", getRecurrence(s) -s = "every day from the second day until the 10th day of every other month until the fifth month" +s = "every day from the second day until the 10th day of every other month until the fifth month of every other year from 2010" print s print "->", getRecurrence(s) -s = "every day from the 10th day in the second month until the 10th day in the 10th month of every third month from the first month" +s = "every day from the 10th day in the second month until the 10th day in the 10th month " \ + "of every third month from the first month of every year until 2011" +print s +print "->", getRecurrence(s) + +s = "every day from the 10th day in February until the 10th day in October " \ + "of every third month from January of every year until 2011" print s print "->", getRecurrence(s) @@ -84,6 +90,27 @@ except ParseError, exc: print exc +s = "every day from the second day until the 10th day of every other month until the fifth month" +print s +try: + print "->", getRecurrence(s) +except ParseError, exc: + print exc + +s = "every day from the 10th day in the second month until the 10th day in the 10th month of every third month from the first month" +print s +try: + print "->", getRecurrence(s) +except ParseError, exc: + print exc + +s = "every day from the 10th day in February until the 10th day in October of every third month from January" +print s +try: + print "->", getRecurrence(s) +except ParseError, exc: + print exc + # Limits do not match recurrence. s = "every single day of every other February from 2013"