{ "info": { "author": "Sarbjit Singh", "author_email": "srbcheema1@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.5" ], "description": "# CODE_TESTER\n\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.ocm/srbcheema1/code_tester/issues)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.png?v=103)](https://github.com/srbcheema1/code_tester)\n[![Build Status](https://travis-ci.org/srbcheema1/code_tester.svg?branch=master)](https://travis-ci.org/srbcheema1/code_tester)\n[![HitCount](http://hits.dwyl.io/srbcheema1/code_tester.svg)](http://hits.dwyl.io/srbcheema1/code_tester)\n\nCode_tester is a command-line code testing tool used to test your codes against codes of your friends/brute-force code.\n\n\n### Installation\n\n#### Build from Source\n\n- `git clone https://github.com/srbcheema1/code_tester`\n- `cd code_tester`\n- `python3 setup.py install --user`\n\n#### Install using pip\n\n##### linux and mac users\n```\npython3 -m pip install --user code_tester\n```\nDon't forget `~/.local/bin` should be in your `PATH`. Add line `export PATH=$PATH:\"~/.local/bin\"` in your `~/.bashrc`\n\n##### windows users\nfor windows users you should have python3 installed in your system\n```\npython3 -m pip install --user code_tester\n```\n### Usage\n\n```\nsrb@srb-pc:$ code_tester --help\nusage: code_tester [-h] [-f FILE] [-o OTHER] [-t TEST] [-i ID] [-n NUM]\n [-s SEC] [-c]\n [legacy [legacy ...]]\n\npositional arguments:\n legacy legacy way of args\n\noptional arguments:\n -h, --help show this help message and exit\n -f FILE, --file FILE Input file name, ex: one.cpp\n -o OTHER, --other OTHER\n Other input file name, ex: brute.cpp\n -t TEST, --test TEST Test generator, ex: testgen.py\n -i ID, --id ID Unique_id, ex: 111\n -n NUM, --num NUM Maximum number of test cases, ex: 1000\n -s SEC, --sec SEC Maximum time in seconds for a test file, ex: 4\n -c, --clean Clean the files generated by tester\n\n```\n\n#### Argument `--test` may contain a testcase-generator which outputs a testcase OR a custom testcase `txt` file.\n\n```\nsrb@srb-pc:$ code_tester -f one.cpp -o brute_one.cpp -t testgen.py -n 500\ntested 100\ntested 200\ntested 300\ntested 400\ntested 500\npassed 500 testcases\n\nsrb@srb-pc:$ code_tester wrong.cpp brute.cpp testgen.py\nDifference detected in outputs\n---------Failed Test Case----------\n10 11 4\n1 0 0 0 0 0 0 1 1 1\n!?!!?!?!!!!\n\n---------End of Test Case----------\nfirst difference in line 3\n+---+-----------+-----------+\n| # | wrong.cpp | brute.cpp |\n+---+-----------+-----------+\n| 1 | 2 | 2 |\n| 2 | 4 | 4 |\n| 3 | 3 | 4 |\n+---+-----------+-----------+\n\n```\n\n#### Smart enough\n\n- smart enough to detect that `1` is same as `1.0`\n- able to detect and ignore difference of less than 1e-6 in float values\n- able to ignore trailing white spaces\n\n```\nsrb@srb-pc:$ code_tester wrong.cpp brute.cpp testgen.py\nDifference detected in outputs\n---------Failed Test Case----------\n10\n5 1\n13 9\n15 2\n11 10\n16 2\n18 9\n17 16\n13 2\n16 16\n19 16\n\n---------End of Test Case----------\nfirst difference in line 8\n+----+-------------+-----------+\n| # | wrong.cpp | brute.cpp |\n+----+-------------+-----------+\n| 1 | 0.33333333 | 0.3333333 | ignore percision differences smaller than 1e-6\n| 2 | 1.00000000 | 1 | it will detect values are same in 1.0, 1.000 and 1\n| 3 | 0.25000000 | 0.2500000 |\n| 4 | 1.00000000 | 1 |\n| 5 | 0.25000000 | 0.2500000 |\n| 6 | 1.00000000 | 1 |\n| 7 | 0.14285714 | 0.1428571 | this line is not marked as diff(smart to detect negligible change)\n| 8 | 0.33333333 | 0.2500000 | this one is 7th line which actually differs\n| 9 | 1.00000000 | 1 |\n| 10 | 1.00000000 | 1 |\n+----+-------------+-----------+\n\n```\n\n### Supported Languages\n\n- c++\n- c\n- python3\n- java\n- ruby\n\n\n\n### Contact / Social Media\n\n[![Github](https://raw.githubusercontent.com/srbcheema1/CheemaFy/master/myPlugins/extra_things/png_images/social/github.png)](https://github.com/srbcheema1/)\n[![LinkedIn](https://raw.githubusercontent.com/srbcheema1/CheemaFy/master/myPlugins/extra_things/png_images/social/linkedin-48x48.png)](https://www.linkedin.com/in/srbcheema1/)\n[![Facebook](https://raw.githubusercontent.com/srbcheema1/CheemaFy/master/myPlugins/extra_things/png_images/social/fb.png)](https://www.facebook.com/srbcheema/)\n\n\n### Developed by\n\nDeveloper / Author: [Srb Cheema](https://github.com/srbcheema1/)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/srbcheema1/code_tester", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "code-tester", "package_url": "https://pypi.org/project/code-tester/", "platform": "", "project_url": "https://pypi.org/project/code-tester/", "project_urls": { "Homepage": "http://github.com/srbcheema1/code_tester" }, "release_url": "https://pypi.org/project/code-tester/0.0.8/", "requires_dist": null, "requires_python": "", "summary": "A command line tool for media editing", "version": "0.0.8" }, "last_serial": 5199293, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "522ca7e5362c9302c243032973779366", "sha256": "b5b589f127e09d56ec74514b562d5220448025e3ee30dfcf8da1f598cb340239" }, "downloads": -1, "filename": "code_tester-0.0.1.tar.gz", "has_sig": false, "md5_digest": "522ca7e5362c9302c243032973779366", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8632, "upload_time": "2018-11-05T11:45:32", "url": "https://files.pythonhosted.org/packages/1e/fb/67aeccf8ab6e0badc1e8034641294c18d5bcbb4473758f9e7c4cf4c27d77/code_tester-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "ede0e23863a935bef488da8bf95b9379", "sha256": "aa80fcf967baa19f93a0b8edfebf9770fef73426e6728beebd6b042c0c07af4a" }, "downloads": -1, "filename": "code_tester-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ede0e23863a935bef488da8bf95b9379", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9022, "upload_time": "2018-11-09T19:26:36", "url": "https://files.pythonhosted.org/packages/4b/54/aaaed56652ff4e6562633118fd2175d03f985eebdcc51cd8780d36a186a3/code_tester-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "bd7ae56c09954aa64a40b759c53743d1", "sha256": "8030778529f114c910e9b9dd7a88c0fd3705c78c2b518c282090f6700ded7afe" }, "downloads": -1, "filename": "code_tester-0.0.3.tar.gz", "has_sig": false, "md5_digest": "bd7ae56c09954aa64a40b759c53743d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10301, "upload_time": "2018-11-09T21:17:22", "url": "https://files.pythonhosted.org/packages/d6/df/f9019e6c2df69fe5f4ae6520dfa693fc1333db0fa5c60135ce7599b672fd/code_tester-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "8d501b6d9fe1249435be527739ed268a", "sha256": "1053d4ddd50f2ff60f822341afe985369053b10a535e22e90d7e580689af6a85" }, "downloads": -1, "filename": "code_tester-0.0.4.tar.gz", "has_sig": false, "md5_digest": "8d501b6d9fe1249435be527739ed268a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10565, "upload_time": "2018-11-09T22:12:44", "url": "https://files.pythonhosted.org/packages/7b/5e/d3d9f7e495f907d1b00526b42e585b34d634e9111aa601247fc55ebca481/code_tester-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "d18a5832a9e22a1dea711105b1fb7f55", "sha256": "7843033f6b43cc8e5500d3c21d06bf4793f744f69e760cacf37e1b68ebdacbf1" }, "downloads": -1, "filename": "code_tester-0.0.5.tar.gz", "has_sig": false, "md5_digest": "d18a5832a9e22a1dea711105b1fb7f55", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10642, "upload_time": "2018-11-10T19:27:04", "url": "https://files.pythonhosted.org/packages/1f/8f/782d490e1fabaf02239b2b7659ea3c49fa47998b443e1e6e9358f8f020ea/code_tester-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "98c5a437c29bb946a438af84eb434fac", "sha256": "2d13f65979dd1aa31bb50997cab4dcaa7a0e118406e6bb615a7cd087fbc6592e" }, "downloads": -1, "filename": "code_tester-0.0.6.tar.gz", "has_sig": false, "md5_digest": "98c5a437c29bb946a438af84eb434fac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11203, "upload_time": "2018-12-08T19:53:32", "url": "https://files.pythonhosted.org/packages/50/98/46bdadc5d47a2441f3cc7c09395121af6d95d3f8a81375033c8e9b288fbb/code_tester-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "ee1567475de99d63933733430d3e6be5", "sha256": "783509cfd3f5fd2c2051f49c83cf9f3e882df0d300f9115d93789666859db3bc" }, "downloads": -1, "filename": "code_tester-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "ee1567475de99d63933733430d3e6be5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12132, "upload_time": "2019-01-15T01:24:26", "url": "https://files.pythonhosted.org/packages/a1/fd/84530d1ffb11590734b397afca8e68234799708c2aa4adeb90a0cccce8fe/code_tester-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c5302a0ea808c90e50e07ea748e355f", "sha256": "b9da0e120825d741f253552b7d66305edfd4601c0dd95edeedf41864c8971e92" }, "downloads": -1, "filename": "code_tester-0.0.7.tar.gz", "has_sig": false, "md5_digest": "5c5302a0ea808c90e50e07ea748e355f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10831, "upload_time": "2019-01-15T01:24:29", "url": "https://files.pythonhosted.org/packages/76/af/5322839b3b68603974fc8c3f657c262f21bfca08ab236a5113e72f6844e9/code_tester-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "49eedec5786fb28e653e4306d36229ce", "sha256": "d6faeef99224c824ad2d50dabe31cc1ae4029fd45b5b27bcdf63a7d70c796bc1" }, "downloads": -1, "filename": "code_tester-0.0.8.tar.gz", "has_sig": false, "md5_digest": "49eedec5786fb28e653e4306d36229ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8592, "upload_time": "2019-04-28T10:37:11", "url": "https://files.pythonhosted.org/packages/cb/4f/9002bb01fda488211fd704ed8c51a4839912e55ca08c8a252e55f9da11c8/code_tester-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49eedec5786fb28e653e4306d36229ce", "sha256": "d6faeef99224c824ad2d50dabe31cc1ae4029fd45b5b27bcdf63a7d70c796bc1" }, "downloads": -1, "filename": "code_tester-0.0.8.tar.gz", "has_sig": false, "md5_digest": "49eedec5786fb28e653e4306d36229ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8592, "upload_time": "2019-04-28T10:37:11", "url": "https://files.pythonhosted.org/packages/cb/4f/9002bb01fda488211fd704ed8c51a4839912e55ca08c8a252e55f9da11c8/code_tester-0.0.8.tar.gz" } ] }