Add a test case for compress string challenge (#199)

This commit is contained in:
Kevin George 2017-06-19 20:03:15 -05:00 committed by Donne Martin
parent b9637726e1
commit ba3fb473b1

View File

@ -6,6 +6,7 @@ class TestCompress(object):
def test_compress(self, func):
assert_equal(func(None), None)
assert_equal(func(''), '')
assert_equal(func('ABC'), 'ABC')
assert_equal(func('AABBCC'), 'AABBCC')
assert_equal(func('AAABCCDDDDE'), 'A3BC2D4E')
assert_equal(func('BAAACCDDDD'), 'BA3C2D4')
@ -20,4 +21,4 @@ def main():
if __name__ == '__main__':
main()
main()