Generate code to load a crate's tests into the std test runner. Issue #428

This commit is contained in:
Brian Anderson 2011-07-09 18:36:19 -07:00
parent 09982784c6
commit 75047ea87e
2 changed files with 233 additions and 52 deletions

View file

@ -27,7 +27,7 @@ type test_desc = rec(test_name name,
// The default console test runner. It accepts the command line
// arguments and a vector of test_descs (generated at compile time).
fn test_main(&vec[str] args, &test_desc[] tests) -> int {
fn test_main(&test_desc[] tests) -> int {
if (run_tests(tests)) {
ret 0;
} else {