Add missing argument in reverse words unit test (#208)

This commit is contained in:
zDoNZaI 2017-08-30 08:11:32 +08:00 committed by Donne Martin
parent c35bed5af2
commit e291942a66

View File

@ -103,7 +103,7 @@
"from nose.tools import assert_equal\n", "from nose.tools import assert_equal\n",
"\n", "\n",
"class UnitTest (object):\n", "class UnitTest (object):\n",
" def testReverseWords(self):\n", " def testReverseWords(self, func):\n",
" assert_equal(func('the sun is hot'), 'eht nus si toh')\n", " assert_equal(func('the sun is hot'), 'eht nus si toh')\n",
" assert_equal(func(''), None)\n", " assert_equal(func(''), None)\n",
" assert_equal(func('123 456 789'), '321 654 987')\n", " assert_equal(func('123 456 789'), '321 654 987')\n",
@ -148,4 +148,4 @@
}, },
"nbformat": 4, "nbformat": 4,
"nbformat_minor": 0 "nbformat_minor": 0
} }