cracking-the-coding-interview
cracking-the-coding-interview copied to clipboard
Fix incorrect test for _01_05_OneAway and add test for identical strings
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.