Euler Lua Implementation

Luai LuaCheck Lu-Cov

Organization

All files share a common prefix with their problem number. All shared functions are moved to files in the include subfolder

Makefile

There are three main recipes in this Makefile

test

Runs the test script

test_*

In most subdirectories this would run tests in parallel, however this is not implemented for lua, and it will be redirected to test

clean

Cleans up any stray files from runtime

Tests

Generic Problems

For each problem it will check the answer against a known dictionary. If the problem is not in the "known slow" category (meaning that I generate the correct answer with a poor solution), it will run it as many times as the benchmark plugin wants. Otherwise it is run exactly once.

A test fails if it gets the wrong answer or if it takes more than 1 minute.

Dependencies

I try to keep the dependencies of this project as small as possible, except for test plugins. At the moment there are no dependencies for this section.

Library Code

Problems Solved