Skip to content

AlanCoding/Project-Euler-Travis-tests-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Objective and How to Use

The point of this repository is that you clone it, program your answers, make a pull request, and then get Travis results telling you how many tests you passed. That is the sense in which these are automated tests that "grade" answers to Project Euler questions.

Links

In the first pass, I'm looking at a dumb drop-in of answers from other places on the web. Here are some sources of answers with notes:

The point of this is not to solve the questions. It is to use the obvious tools to build a testing mechanism.

Obfuscated testing

Part of the fun of this repo might be solving a "reverse" problem. That is, writing a program for each problem that somehow algorithmically tests the correctness of the answer, based on the problem statement.

As an example, if the question asked "find the number that is a common factor of both X and Y", then the test function should reasonably test that X is divisible by the answer, and that Y is divisible by the answer. Such methods do not necessarily have to divulge anything about the solution.

Some problems are easier than others to implement this philosophy for.

About

Automated tests that "grade" answers to Project Euler questions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages