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 @@ -1886,6 +1886,7 @@ Jacob Walls
1886
1886
Kevin Walzer
1887
1887
Rodrigo Steinmuller Wanderley
1888
1888
Dingyuan Wang
1889
+ Jiahua Wang
1889
1890
Ke Wang
1890
1891
Liang-Bo Wang
1891
1892
Greg Ward
You can’t perform that action at this time.
0 commit comments