[][src]Module stipulate::test

Functions, enumerations, etc. pertaining to the evaluation of student programs

Enums

TestAnswer

An enum which contains the possible results of running a Test on a student's code. Note that this only has options for if the test completes, a different value is returned if the tester is unable to evaluate a student's code.

Functions

test_output

Runs the given command with the given args, and passes the given argument as input through standard input. It returns true iff the command's output matches expected_output.

test_student

Tests the given command (cmd and args) against the given cases (input/ouput pairs), with a specified per-case timeout.