def test_c0_d0(self):
     c0 = [
         57,
         49,
         41,
         33,
         25,
         17,
         9,
         1,
         58,
         50,
         42,
         34,
         26,
         18,
         10,
         2,
         59,
         51,
         43,
         35,
         27,
         19,
         11,
         3,
         60,
         52,
         44,
         36,
     ]
     d0 = [
         63,
         55,
         47,
         39,
         31,
         23,
         15,
         7,
         62,
         54,
         46,
         38,
         30,
         22,
         14,
         6,
         61,
         53,
         45,
         37,
         29,
         21,
         13,
         5,
         28,
         20,
         12,
         4,
     ]
     rc0, rd0 = KGen.get_c0_d0(list(range(1, 65)))
     self.assertListEqual(rc0, c0)
     self.assertListEqual(rd0, d0)
 def test_logical_left_shift(self):
     self.assertListEqual(
         KGen.logical_left_shift([1, 2, 3, 4], 2),
         [3, 4, 1, 2],
     )
 def test_logical_left_shift(self):
     self.assertListEqual(KGen.logical_left_shift([1, 2, 3, 4], 2), [3, 4, 1, 2])
 def test_c0_d0(self):
     c0 = [
         57,
         49,
         41,
         33,
         25,
         17,
         9,
         1,
         58,
         50,
         42,
         34,
         26,
         18,
         10,
         2,
         59,
         51,
         43,
         35,
         27,
         19,
         11,
         3,
         60,
         52,
         44,
         36,
     ]
     d0 = [
         63,
         55,
         47,
         39,
         31,
         23,
         15,
         7,
         62,
         54,
         46,
         38,
         30,
         22,
         14,
         6,
         61,
         53,
         45,
         37,
         29,
         21,
         13,
         5,
         28,
         20,
         12,
         4,
     ]
     rc0, rd0 = KGen.get_c0_d0(list(range(1, 65)))
     self.assertListEqual(rc0, c0)
     self.assertListEqual(rd0, d0)