cracking-the-coding-interview icon indicating copy to clipboard operation
cracking-the-coding-interview copied to clipboard

Fix incorrect test for _01_05_OneAway and add test for identical strings

Open mimkorn opened this issue 5 years ago • 0 comments

Hi, based on the exercise description we should only evaluate to true, if two strings are one edit away from each other. Two empty strings are not, they are identical. I added one more test that checks that two identical non-empty strings are evaluated as not one edit away from each other.

If you're happy with this, feel free to pull.

mimkorn avatar Sep 29 '19 09:09 mimkorn