mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
556a9adc11
Summary: The current test cases for the "string permutation checker" problem do not include a test case where the inputs have the same elements at different multiplicities. Without this test case, the implementation return s1 is not None and s2 is not None and set(s1) == set(s2) would pass all tests. Test Plan: First, change one of the implementations to the above implementation, and see that the original tests still pass. Then, apply this patch to add the new test case. Then, revert the implementation change to see all tests pass again. |
||
---|---|---|
.. | ||
__init__.py | ||
permutation_challenge.ipynb | ||
permutation_solution.ipynb | ||
test_permutation_solution.py |