mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +00:00
ceacfc6079
* Add file for testing Project Euler solutions * Remove the importlib import * Update project_euler/solution_test.py Co-authored-by: Christian Clauss <cclauss@me.com> * Small tweaks to project_euler/solution_test.py * Test Project Euler solutions through Travis * Improved testing for Project Euler solutions: - Renamed file so that it isn't picked up by pytest - Fail fast on validating solutions through Travis CI * Update validate_solutions.py * Use namedtuple for input parameters and answer - Remove logging - Remove unnecessary checks for PROJECT_EULER_PATH as Travis CI picks up the same path * Fix flake8 errors: line too long * Small tweaks to validate_solutions.py * Add all answers & back to using dictionary * Using pytest for testing Project Euler solutions - As we want to fail fast on testing solutions, we need to test using this script first before we use tests written by the author. - As pytest stops testing as soon as it receives a traceback, we need to use pytest-subtests to tell pytest to test all the iterations for the function with given parameters. * Print error messages in oneline format * Separated answers into a separate file: - Add custom print function to print all the error messages at the end of all the tests - Let Travis skip if this failed Co-authored-by: Christian Clauss <cclauss@me.com> |
||
---|---|---|
.. | ||
problem_01 | ||
problem_02 | ||
problem_03 | ||
problem_04 | ||
problem_05 | ||
problem_06 | ||
problem_07 | ||
problem_08 | ||
problem_09 | ||
problem_10 | ||
problem_11 | ||
problem_12 | ||
problem_13 | ||
problem_14 | ||
problem_15 | ||
problem_16 | ||
problem_17 | ||
problem_18 | ||
problem_19 | ||
problem_20 | ||
problem_21 | ||
problem_22 | ||
problem_23 | ||
problem_24 | ||
problem_25 | ||
problem_26 | ||
problem_27 | ||
problem_28 | ||
problem_29 | ||
problem_30 | ||
problem_31 | ||
problem_32 | ||
problem_33 | ||
problem_34 | ||
problem_35 | ||
problem_36 | ||
problem_37 | ||
problem_39 | ||
problem_40 | ||
problem_41 | ||
problem_42 | ||
problem_43 | ||
problem_44 | ||
problem_45 | ||
problem_46 | ||
problem_47 | ||
problem_48 | ||
problem_52 | ||
problem_53 | ||
problem_54 | ||
problem_55 | ||
problem_56 | ||
problem_63 | ||
problem_67 | ||
problem_76 | ||
problem_97 | ||
problem_99 | ||
problem_234 | ||
problem_551 | ||
project_euler_answers.json | ||
README.md | ||
validate_solutions.py |
ProjectEuler
Problems are taken from https://projecteuler.net/.
Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Project Euler is ideal for mathematicians who are learning to code.
Here the efficiency of your code is also checked. I've tried to provide all the best possible solutions.
For description of the problem statements, kindly visit https://projecteuler.net/show=all