Container image for MIPS used by CodeRunner.
$ ./bin/run
Specify a container engine (default: docker
) with environment variable CONTAINER_ENGINE
. E.g. with Podman:
$ CONTAINER_ENGINE=podman ./bin/run
Specify an example within the examples/
directory to run (default: multiply
) by passing a command-line argument. E.g. to run the example under examples/pascal/
:
$ ./bin/run pascal
multiply
(default): Minimal example ofmultiply
function and test casesmultiply-failing
: Likemultiply
, but with a failing implementationlabel-collision
: Example of two functions with the same name in different files, leading to an errorpascal
: Example of computing Pascal's triangle using afactorial
function preloaded for the solverstring-reverse
: Example of string reverse function and test casesstring-reverse-failing
: Likestring-reverse
, but with a failing implementationarray-reverse
: Example of array reverse function and test casesarray-reverse-failing
: Likearray-reverse
, but with a failing implementation
$ docker build -t ghcr.io/codewars/mips:latest .