{ "info": { "author": "Devgum", "author_email": "devgum@foxmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "# leetcode_tester\n\u5728leetcode\u505a\u9898\u65f6\uff0c\u611f\u89c9\u63d0\u4ea4\u4ee3\u7801\u65f6\uff0c\u6548\u7387\u53d7\u5236\u4e8e\u7f51\u7edc\u3002Leetcode\u7684\u7f16\u8f91\u5668\u73af\u5883\u4e5f\u4e0d\u662f\u5f88\u987a\u624b\uff0c\u5e38\u5e38\u6025\u8e81\u63d0\u4ea4\u7559\u4e0b\u5931\u8d25\u7684\u63d0\u4ea4\u8bb0\u5f55\u3002\n\u9042\u7b80\u5355\u5199\u4e86\u4e2a\u672c\u5730\u6d4b\u8bd5\u6846\u67b6\uff0c\u65b9\u4fbf\u5728\u672c\u5730\u8fdb\u884c\u6d4b\u8bd5\u3002\n\n# \u4f7f\u7528\u65b9\u6cd5\n\n## \u4f7f\u7528\u793a\u4f8b\n\n```\nfrom leetcode_tester import Tester\n\n\nclass Solution():\n def sfc(self, *args):\n # TODO: write your code here\n # Example:\n return sum(args)\n\n\nif __name__ == '__main__':\n solution = Solution()\n test = Tester(solution.sfc)\n # TODO: add test case here\n # Example:\n test.addTest(1, 2, 3)\n test.addTest(2, 4, 6)\n test.doTest()\n\n```\n\nSolution\u7c7b\u53ef\u4ee5\u9009\u62e9\u4eceLeetcode\u7684\u7f16\u8f91\u5668\u4e2d\u590d\u5236\u800c\u6765\u3002\u5f53\u7136\uff0c\u6709\u4e9b\u989d\u5916\u7684\u7279\u6b8a\u7c7b\u578b\uff0c\u8fd8\u662f\u9700\u8981\u81ea\u5df1\u8865\u5145\u3002\nTester\u7684addTest\u65b9\u6cd5\u7528\u4e8e\u6dfb\u52a0\u7528\u4f8b\uff0c\u6700\u540e\u4e00\u4e2a\u5165\u53c2\u4f1a\u88ab\u4f5c\u4e3a\u671f\u5f85\u7ed3\u679c\uff0c\u4e4b\u524d\u7684\u53c2\u6570\u4f1a\u88ab\u4f5c\u4e3a\u5165\u53c2\u4f20\u5165Solution\u65b9\u6cd5\u3002\n\n## \u8f93\u51fa\u793a\u4f8b\n\n```\nTest [0]: \nArgs: [(1, 2)] \nExpect: [3] \nResult: [3] \nSucceed: [True] \n==============\nTest [1]: \nArgs: [(2, 4)] \nExpect: [6] \nResult: [6] \nSucceed: [True] \n==============\nTest finished. [0] failed. [2] succeed.\ndoTest cost: [0.0]\n\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/devgum/leetcode_tester", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "leetcode-tester", "package_url": "https://pypi.org/project/leetcode-tester/", "platform": "", "project_url": "https://pypi.org/project/leetcode-tester/", "project_urls": { "Homepage": "https://github.com/devgum/leetcode_tester" }, "release_url": "https://pypi.org/project/leetcode-tester/1.0.3/", "requires_dist": null, "requires_python": ">=3.6.0", "summary": "Local tester for Leetcode.", "version": "1.0.3" }, "last_serial": 5132476, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "7441680c0cc8bceaf7f9302590a44164", "sha256": "78e5c9300a935d410f28b6679799e315484ddd4c75879074271c8ec139ecece3" }, "downloads": -1, "filename": "leetcode_tester-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "7441680c0cc8bceaf7f9302590a44164", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 3634, "upload_time": "2019-03-28T08:58:20", "url": "https://files.pythonhosted.org/packages/97/99/b47fca1c10603af03c7584698e2dd14fc7a1e1c2685f4fb47d57f387bea0/leetcode_tester-1.0.2-py3-none-any.whl" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "1fea922a9952e7a17863020262b9d832", "sha256": "09817d3b61d41402a5d2ea696e38596d0d21f008d8a9fc8bd8bdd1607b9c3ee4" }, "downloads": -1, "filename": "leetcode_tester-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1fea922a9952e7a17863020262b9d832", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 3680, "upload_time": "2019-04-12T06:12:45", "url": "https://files.pythonhosted.org/packages/bf/1e/11d1965e448f1b51bf92b21faf25317c274ade3bea42e26635bc60cbc216/leetcode_tester-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c00a165cdffd3830cb09381b7f2afdc", "sha256": "eef3a10c276854293cf44ab7c36295c451d989a34b4c28f99a20389a2d1b4424" }, "downloads": -1, "filename": "leetcode_tester-1.0.3.tar.gz", "has_sig": false, "md5_digest": "9c00a165cdffd3830cb09381b7f2afdc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 2425, "upload_time": "2019-04-12T06:12:47", "url": "https://files.pythonhosted.org/packages/5c/e8/8bdd57b815a4082967300928138d669a95106b683e0cd1592379eb46f249/leetcode_tester-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1fea922a9952e7a17863020262b9d832", "sha256": "09817d3b61d41402a5d2ea696e38596d0d21f008d8a9fc8bd8bdd1607b9c3ee4" }, "downloads": -1, "filename": "leetcode_tester-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1fea922a9952e7a17863020262b9d832", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 3680, "upload_time": "2019-04-12T06:12:45", "url": "https://files.pythonhosted.org/packages/bf/1e/11d1965e448f1b51bf92b21faf25317c274ade3bea42e26635bc60cbc216/leetcode_tester-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c00a165cdffd3830cb09381b7f2afdc", "sha256": "eef3a10c276854293cf44ab7c36295c451d989a34b4c28f99a20389a2d1b4424" }, "downloads": -1, "filename": "leetcode_tester-1.0.3.tar.gz", "has_sig": false, "md5_digest": "9c00a165cdffd3830cb09381b7f2afdc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 2425, "upload_time": "2019-04-12T06:12:47", "url": "https://files.pythonhosted.org/packages/5c/e8/8bdd57b815a4082967300928138d669a95106b683e0cd1592379eb46f249/leetcode_tester-1.0.3.tar.gz" } ] }