def test_romeo(self): seq = read_file('romeo-intro.txt') copy = seq[:] result = find_lis(seq) self.assertListEqual(copy, seq) self.assertTrue(verify_increasing(result), str(result)) self.assertTrue(verify_subseq(seq, result), str(result)) self.assertEqual(18, len(result), str(result))
def test_lis_pi(self): seq = read_file('pi.txt') copy = seq[:] result = find_lis(seq) self.assertListEqual(copy, seq) self.assertTrue(verify_increasing(result), str(result)) self.assertTrue(verify_subseq(seq, result), str(result)) self.assertEqual(7, len(result), str(result))