mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Add original test case back
This commit is contained in:
parent
6128fcb1d1
commit
923738a24d
|
@ -159,6 +159,7 @@
|
||||||
" solution = Solution()\n",
|
" solution = Solution()\n",
|
||||||
" self.assertRaises(TypeError, solution.find_diff, None)\n",
|
" self.assertRaises(TypeError, solution.find_diff, None)\n",
|
||||||
" self.assertEqual(solution.find_diff('ab', 'aab'), 'a')\n",
|
" self.assertEqual(solution.find_diff('ab', 'aab'), 'a')\n",
|
||||||
|
" self.assertEqual(solution.find_diff('aab', 'ab'), 'a')\n",
|
||||||
" self.assertEqual(solution.find_diff('baa', 'ab'), 'a')\n",
|
" self.assertEqual(solution.find_diff('baa', 'ab'), 'a')\n",
|
||||||
" self.assertEqual(solution.find_diff('abcd', 'abcde'), 'e')\n",
|
" self.assertEqual(solution.find_diff('abcd', 'abcde'), 'e')\n",
|
||||||
" self.assertEqual(solution.find_diff('aaabbcdd', 'abdbacade'), 'e')\n",
|
" self.assertEqual(solution.find_diff('aaabbcdd', 'abdbacade'), 'e')\n",
|
||||||
|
@ -217,4 +218,4 @@
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
"nbformat_minor": 1
|
"nbformat_minor": 1
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user