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 @@ -595,6 +595,14 @@ def test_itermonthdays2(self):
595
595
self .assertEqual (days [0 ][1 ], firstweekday )
596
596
self .assertEqual (days [- 1 ][1 ], (firstweekday - 1 ) % 7 )
597
597
598
+ def test_iterweekdays (self ):
599
+ week0 = list (range (7 ))
600
+ for firstweekday in range (7 ):
601
+ cal = calendar .Calendar (firstweekday )
602
+ week = list (cal .iterweekdays ())
603
+ expected = week0 [firstweekday :] + week0 [:firstweekday ]
604
+ self .assertEqual (week , expected )
605
+
598
606
599
607
class MonthCalendarTestCase (unittest .TestCase ):
600
608
def setUp (self ):
Original file line number Diff line number Diff line change @@ -1840,6 +1840,7 @@ Jacob Walls
1840
1840
Kevin Walzer
1841
1841
Rodrigo Steinmuller Wanderley
1842
1842
Dingyuan Wang
1843
+ Jiahua Wang
1843
1844
Ke Wang
1844
1845
Liang-Bo Wang
1845
1846
Greg Ward
You can’t perform that action at this time.
0 commit comments