Skip to content
Snippets Groups Projects
Unverified Commit 48269ea9 authored by 180909's avatar 180909 Committed by GitHub
Browse files

bpo-46484:Add test for Calendar.iterweekdays (GH-30825)

parent d1b1c885
No related branches found
No related tags found
No related merge requests found
......@@ -619,6 +619,14 @@ def test_itermonthdays2(self):
self.assertEqual(days[0][1], firstweekday)
self.assertEqual(days[-1][1], (firstweekday - 1) % 7)
def test_iterweekdays(self):
week0 = list(range(7))
for firstweekday in range(7):
cal = calendar.Calendar(firstweekday)
week = list(cal.iterweekdays())
expected = week0[firstweekday:] + week0[:firstweekday]
self.assertEqual(week, expected)
class MonthCalendarTestCase(unittest.TestCase):
def setUp(self):
......
......@@ -1886,6 +1886,7 @@ Jacob Walls
Kevin Walzer
Rodrigo Steinmuller Wanderley
Dingyuan Wang
Jiahua Wang
Ke Wang
Liang-Bo Wang
Greg Ward
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment