interactive-coding-challenges/arrays_strings/compress
Marek Piskorek a88f0a0b0b Add two more test cases for string compress coding challenge. (#125)
* Add two more test cases for string compress coding challenge.

I believe that the existing test cases are not strict enough to assure
a proper solution for this challenge.

I was able to implement a wrong, but still passing solution to this
basing on set and collections.Counter mechanism, since the test cases
present only situations with singular occurrences of a letter chain and
all the test strings are alphabetically sorted.

I believe that the two new test cases enforce more thorough approach to
the problem and, in effect, the test cases are more descriptive.

* Fix the results in tests since the solution changed in the meantine on
original branch.

* Update also the test_compress and solution.
2016-11-30 07:41:16 -05:00
..
__init__.py Renamed top-level folders to use underscores instead of dashes. 2015-06-28 06:39:24 -04:00
compress_challenge.ipynb Add two more test cases for string compress coding challenge. (#125) 2016-11-30 07:41:16 -05:00
compress_solution.ipynb Add two more test cases for string compress coding challenge. (#125) 2016-11-30 07:41:16 -05:00
test_compress.py Add two more test cases for string compress coding challenge. (#125) 2016-11-30 07:41:16 -05:00