Generate code to load a crate's tests into the std test runner. Issue #428
This commit is contained in:
parent
09982784c6
commit
75047ea87e
2 changed files with 233 additions and 52 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue