mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Add a test case for compress string challenge (#199)
This commit is contained in:
parent
b9637726e1
commit
ba3fb473b1
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user