def test_list_built(self): bwt = BWT([1, 2]) self.assertEqual(bwt.table[0], [BWT.END, 2, 1]) self.assertEqual(bwt.transform(), [1, 2, BWT.END]) self.assertEqual(bwt.C(1), 1) # There is one 1 in the string self.assertEqual(bwt.F(1, 1), 1) # There is one 1 in the last one characters