fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1#![feature(prelude_import)] 2#![no_std] 3#[prelude_import] 4use ::std::prelude::rust_2015::*; 5#[macro_use] 6extern crate std; 7// compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/ 8// pretty-compare-only 9// pretty-mode:expanded 10// pp-exact:tests-are-sorted.pp 11 12extern crate test; 13#[cfg(test)] 14#[rustc_test_marker = "m_test"] 15pub const m_test: test::TestDescAndFn = 16 test::TestDescAndFn { 17 desc: test::TestDesc { 18 name: test::StaticTestName("m_test"), 19 ignore: false, 20 ignore_message: ::core::option::Option::None, 21 source_file: "/the/src/tests-are-sorted.rs", 22 start_line: 7usize, 23 start_col: 4usize, 24 end_line: 7usize, 25 end_col: 10usize, 26 compile_fail: false, 27 no_run: false, 28 should_panic: test::ShouldPanic::No, 29 test_type: test::TestType::Unknown, 30 }, 31 testfn: test::StaticTestFn(|| test::assert_test_result(m_test())), 32 }; 33fn m_test() {} 34 35extern crate test; 36#[cfg(test)] 37#[rustc_test_marker = "z_test"] 38pub const z_test: test::TestDescAndFn = 39 test::TestDescAndFn { 40 desc: test::TestDesc { 41 name: test::StaticTestName("z_test"), 42 ignore: true, 43 ignore_message: ::core::option::Option::Some("not yet implemented"), 44 source_file: "/the/src/tests-are-sorted.rs", 45 start_line: 11usize, 46 start_col: 4usize, 47 end_line: 11usize, 48 end_col: 10usize, 49 compile_fail: false, 50 no_run: false, 51 should_panic: test::ShouldPanic::No, 52 test_type: test::TestType::Unknown, 53 }, 54 testfn: test::StaticTestFn(|| test::assert_test_result(z_test())), 55 }; 56#[ignore = "not yet implemented"] 57fn z_test() {} 58 59extern crate test; 60#[cfg(test)] 61#[rustc_test_marker = "a_test"] 62pub const a_test: test::TestDescAndFn = 63 test::TestDescAndFn { 64 desc: test::TestDesc { 65 name: test::StaticTestName("a_test"), 66 ignore: false, 67 ignore_message: ::core::option::Option::None, 68 source_file: "/the/src/tests-are-sorted.rs", 69 start_line: 14usize, 70 start_col: 4usize, 71 end_line: 14usize, 72 end_col: 10usize, 73 compile_fail: false, 74 no_run: false, 75 should_panic: test::ShouldPanic::No, 76 test_type: test::TestType::Unknown, 77 }, 78 testfn: test::StaticTestFn(|| test::assert_test_result(a_test())), 79 }; 80fn a_test() {} 81#[rustc_main] 82#[coverage(off)] 83pub fn main() -> () { 84 extern crate test; 85 test::test_main_static(&[&a_test, &m_test, &z_test]) 86}