1.1 --- a/tests/test_recurrence.py Mon Jul 15 00:06:51 2013 +0200
1.2 +++ b/tests/test_recurrence.py Mon Jul 15 00:15:14 2013 +0200
1.3 @@ -56,11 +56,17 @@
1.4 print s
1.5 print "->", getRecurrence(s)
1.6
1.7 -s = "every day from the second day until the 10th day of every other month until the fifth month"
1.8 +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"
1.9 print s
1.10 print "->", getRecurrence(s)
1.11
1.12 -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"
1.13 +s = "every day from the 10th day in the second month until the 10th day in the 10th month " \
1.14 + "of every third month from the first month of every year until 2011"
1.15 +print s
1.16 +print "->", getRecurrence(s)
1.17 +
1.18 +s = "every day from the 10th day in February until the 10th day in October " \
1.19 + "of every third month from January of every year until 2011"
1.20 print s
1.21 print "->", getRecurrence(s)
1.22
1.23 @@ -84,6 +90,27 @@
1.24 except ParseError, exc:
1.25 print exc
1.26
1.27 +s = "every day from the second day until the 10th day of every other month until the fifth month"
1.28 +print s
1.29 +try:
1.30 + print "->", getRecurrence(s)
1.31 +except ParseError, exc:
1.32 + print exc
1.33 +
1.34 +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"
1.35 +print s
1.36 +try:
1.37 + print "->", getRecurrence(s)
1.38 +except ParseError, exc:
1.39 + print exc
1.40 +
1.41 +s = "every day from the 10th day in February until the 10th day in October of every third month from January"
1.42 +print s
1.43 +try:
1.44 + print "->", getRecurrence(s)
1.45 +except ParseError, exc:
1.46 + print exc
1.47 +
1.48 # Limits do not match recurrence.
1.49
1.50 s = "every single day of every other February from 2013"