Testing, Python, Unit Testing, Automation.
return lst def decode(lst): q = '' for character, count in lst: q += character * count return q We want to write a test for this that will check some invariant of these functions. The invariant one tends to try when you’ve got this sort of encoding / decoding is that if you encode something and