let mainfn = (quote_item!(
pub fn main() {
#[main];
- extra::test::test_main_static(::std::os::args(), tests);
+ extra::test::test_main_static(::std::os::args(), TESTS);
}
)).get();
let test_descs = mk_test_descs(cx);
(quote_item!(
- pub static tests : &'static [self::extra::test::TestDescAndFn] =
+ pub static TESTS : &'static [self::extra::test::TestDescAndFn] =
$test_descs
;
)).get()
#[test]
fn checktests() {
// Pull the tests out of the secreturn test module
- let tests = __test::tests;
+ let tests = __test::TESTS;
assert!(
tests.iter().any_(|t| t.desc.name.to_str() == ~"shouldignore" && t.desc.ignore));