mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 01:48:02 +00:00
change test class and function names from default
This commit is contained in:
@@ -114,9 +114,9 @@
|
||||
"# %load test_group_ordered.py\n",
|
||||
"from nose.tools import assert_equal\n",
|
||||
"\n",
|
||||
"class TestFoo(object):\n",
|
||||
"class TestGroupOrdered(object):\n",
|
||||
"\n",
|
||||
" def test_foo(self):\n",
|
||||
" def test_group_ordered(self):\n",
|
||||
" assert_equal(group_ordered(None), None)\n",
|
||||
" assert_equal(group_ordered([]), [])\n",
|
||||
" assert_equal(group_ordered([1]), [1])\n",
|
||||
@@ -124,11 +124,10 @@
|
||||
" assert_equal(group_ordered(['a','b','a']),['a','a','b'])\n",
|
||||
" assert_equal(group_ordered([1,1,2,3,4,5,2,1]),[1,1,1,2,2,3,4,5])\n",
|
||||
" assert_equal(group_ordered([1,2,3,4,3,4]),[1,2,3,3,4,4])\n",
|
||||
" print('Success: test_foo')\n",
|
||||
"\n",
|
||||
"def main():\n",
|
||||
" test = TestFoo()\n",
|
||||
" test.test_foo()\n",
|
||||
" test = TestGroupOrdered()\n",
|
||||
" test.test_group_ordered()\n",
|
||||
"\n",
|
||||
"if __name__ == '__main__':\n",
|
||||
" main()\n"
|
||||
|
||||
Reference in New Issue
Block a user