def test_000(self): self.assertEqual(number_of_words(3, 1, 4), 39) self.assertEqual(number_of_words(3, 0, 10), 29524) self.assertEqual(number_of_words(2, 5, 6), 32) self.assertEqual(number_of_words(3, 0, 13), 797161) self.assertEqual(number_of_words(2, 4, 1), 0) self.assertEqual(number_of_words(2, 4, 4), 0) self.assertEqual(number_of_words(2, 4, 2), 0)
def test_003(self): first = [0] last = [2, 2, 2, 2] w = [x for x in wilo(3, 4, first, last)] u = [] self.assertEqual(len(w), 39) self.assertEqual(len(w), number_of_words(3, 1, 4)) for i in range(0, len(w)): u.append([x for x in w[i]]) self.assertEqual( u, [ [0], [0, 0], [0, 0, 0], [0, 0, 1], [0, 0, 2], [0, 1], [0, 1, 0], [0, 1, 1], [0, 1, 2], [0, 2], [0, 2, 0], [0, 2, 1], [0, 2, 2], [1], [1, 0], [1, 0, 0], [1, 0, 1], [1, 0, 2], [1, 1], [1, 1, 0], [1, 1, 1], [1, 1, 2], [1, 2], [1, 2, 0], [1, 2, 1], [1, 2, 2], [2], [2, 0], [2, 0, 0], [2, 0, 1], [2, 0, 2], [2, 1], [2, 1, 0], [2, 1, 1], [2, 1, 2], [2, 2], [2, 2, 0], [2, 2, 1], [2, 2, 2], ], )
def test_003(self): first = [0] last = [2, 2, 2, 2] w = list(wilo(3, 4, first, last)) self.assertEqual(len(w), 39) self.assertEqual(len(w), number_of_words(3, 1, 4)) u = [list(x) for x in w] self.assertEqual( u, [ [0], [0, 0], [0, 0, 0], [0, 0, 1], [0, 0, 2], [0, 1], [0, 1, 0], [0, 1, 1], [0, 1, 2], [0, 2], [0, 2, 0], [0, 2, 1], [0, 2, 2], [1], [1, 0], [1, 0, 0], [1, 0, 1], [1, 0, 2], [1, 1], [1, 1, 0], [1, 1, 1], [1, 1, 2], [1, 2], [1, 2, 0], [1, 2, 1], [1, 2, 2], [2], [2, 0], [2, 0, 0], [2, 0, 1], [2, 0, 2], [2, 1], [2, 1, 0], [2, 1, 1], [2, 1, 2], [2, 2], [2, 2, 0], [2, 2, 1], [2, 2, 2], ], )
def test_004(self): first = [] last = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] w = [x for x in wilo(3, 13, first, last)] self.assertEqual(len(w), 797161) self.assertEqual(len(w), number_of_words(3, 0, 13))
def test_004(self): w = [x for x in silo("abc", 13, "", "ccccccccccccc")] self.assertEqual(len(w), 797161) self.assertEqual(len(w), number_of_words(3, 0, 13))
def test_008(self): w = [x for x in sislo("abc", "", "aaaaaaaaaaaaa")] self.assertEqual(len(w), 797161) self.assertEqual(len(w), number_of_words(3, 0, 13))
def test_003(self): first = [] last = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] w = list(wislo(3, first, last)) self.assertEqual(len(w), 797161) self.assertEqual(len(w), number_of_words(3, 0, 13))
def test_002(self): first = [] last = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] w = list(wislo(3, first, last)) self.assertEqual(len(w), 29524) self.assertEqual(len(w), number_of_words(3, 0, 10))
def test_004(self): first = [] last = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2] w = list(wilo(3, 10, first, last)) self.assertEqual(len(w), 29524) self.assertEqual(len(w), number_of_words(3, 0, 10))