[−][src]Function stipulate::test::test_student
pub fn test_student<T>(
cmd: &str,
args: &[&str],
cases: &[(&str, &str)],
timeout: Option<Duration>
) -> Vec<Result<TestAnswer, String>>
Tests the given command (cmd and args) against the given cases (input/ouput pairs), with a specified per-case timeout.
It returns a vector containing the results of testing on each of the cases, in the order given.