mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Adding test case to catch faulty solution for permutation-challenge
This commit is contained in:
parent
358f2cc604
commit
02f0c8852c
|
@ -124,6 +124,7 @@
|
|||
" self.assertEqual(func('act', 'cat'), True)\n",
|
||||
" self.assertEqual(func('a ct', 'ca t'), True)\n",
|
||||
" self.assertEqual(func('dog', 'doggo'), False)\n",
|
||||
" self.assertEqual(func('dogoo', 'dogcc'), False)\n",
|
||||
" print('Success: test_permutation')\n",
|
||||
"\n",
|
||||
"\n",
|
||||
|
|
|
@ -196,6 +196,7 @@
|
|||
" self.assertEqual(func('act', 'cat'), True)\n",
|
||||
" self.assertEqual(func('a ct', 'ca t'), True)\n",
|
||||
" self.assertEqual(func('dog', 'doggo'), False)\n",
|
||||
" self.assertEqual(func('dogoo', 'dogcc'), False)\n",
|
||||
" print('Success: test_permutation')\n",
|
||||
"\n",
|
||||
"\n",
|
||||
|
|
Loading…
Reference in New Issue
Block a user