File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -619,6 +619,14 @@ def test_itermonthdays2(self):
619
619
self .assertEqual (days [0 ][1 ], firstweekday )
620
620
self .assertEqual (days [- 1 ][1 ], (firstweekday - 1 ) % 7 )
621
621
622
+ def test_iterweekdays (self ):
623
+ week0 = list (range (7 ))
624
+ for firstweekday in range (7 ):
625
+ cal = calendar .Calendar (firstweekday )
626
+ week = list (cal .iterweekdays ())
627
+ expected = week0 [firstweekday :] + week0 [:firstweekday ]
628
+ self .assertEqual (week , expected )
629
+
622
630
623
631
class MonthCalendarTestCase (unittest .TestCase ):
624
632
def setUp (self ):
Original file line number Diff line number Diff line change @@ -1875,6 +1875,7 @@ Jacob Walls
1875
1875
Kevin Walzer
1876
1876
Rodrigo Steinmuller Wanderley
1877
1877
Dingyuan Wang
1878
+ Jiahua Wang
1878
1879
Ke Wang
1879
1880
Liang-Bo Wang
1880
1881
Greg Ward
You can’t perform that action at this time.
0 commit comments