2022-07-26 21:40:48 +00:00
|
|
|
#![feature(prelude_import)]
|
|
|
|
#![no_std]
|
|
|
|
#[prelude_import]
|
|
|
|
use ::std::prelude::rust_2015::*;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate std;
|
2023-02-08 02:41:28 +00:00
|
|
|
// compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/
|
2022-07-26 21:40:48 +00:00
|
|
|
// pretty-compare-only
|
|
|
|
// pretty-mode:expanded
|
|
|
|
// pp-exact:tests-are-sorted.pp
|
|
|
|
|
|
|
|
extern crate test;
|
|
|
|
#[cfg(test)]
|
|
|
|
#[rustc_test_marker = "m_test"]
|
|
|
|
pub const m_test: test::TestDescAndFn =
|
|
|
|
test::TestDescAndFn {
|
|
|
|
desc: test::TestDesc {
|
|
|
|
name: test::StaticTestName("m_test"),
|
|
|
|
ignore: false,
|
|
|
|
ignore_message: ::core::option::Option::None,
|
2023-02-08 02:41:28 +00:00
|
|
|
source_file: "/the/src/tests-are-sorted.rs",
|
|
|
|
start_line: 7usize,
|
|
|
|
start_col: 4usize,
|
|
|
|
end_line: 7usize,
|
|
|
|
end_col: 10usize,
|
2022-07-26 21:40:48 +00:00
|
|
|
compile_fail: false,
|
|
|
|
no_run: false,
|
|
|
|
should_panic: test::ShouldPanic::No,
|
|
|
|
test_type: test::TestType::Unknown,
|
|
|
|
},
|
|
|
|
testfn: test::StaticTestFn(|| test::assert_test_result(m_test())),
|
|
|
|
};
|
|
|
|
fn m_test() {}
|
|
|
|
|
|
|
|
extern crate test;
|
|
|
|
#[cfg(test)]
|
|
|
|
#[rustc_test_marker = "z_test"]
|
|
|
|
pub const z_test: test::TestDescAndFn =
|
|
|
|
test::TestDescAndFn {
|
|
|
|
desc: test::TestDesc {
|
|
|
|
name: test::StaticTestName("z_test"),
|
2023-02-08 02:41:28 +00:00
|
|
|
ignore: true,
|
|
|
|
ignore_message: ::core::option::Option::Some("not yet implemented"),
|
|
|
|
source_file: "/the/src/tests-are-sorted.rs",
|
|
|
|
start_line: 11usize,
|
|
|
|
start_col: 4usize,
|
|
|
|
end_line: 11usize,
|
|
|
|
end_col: 10usize,
|
2022-07-26 21:40:48 +00:00
|
|
|
compile_fail: false,
|
|
|
|
no_run: false,
|
|
|
|
should_panic: test::ShouldPanic::No,
|
|
|
|
test_type: test::TestType::Unknown,
|
|
|
|
},
|
|
|
|
testfn: test::StaticTestFn(|| test::assert_test_result(z_test())),
|
|
|
|
};
|
2023-02-08 02:41:28 +00:00
|
|
|
#[ignore = "not yet implemented"]
|
2022-07-26 21:40:48 +00:00
|
|
|
fn z_test() {}
|
|
|
|
|
|
|
|
extern crate test;
|
|
|
|
#[cfg(test)]
|
|
|
|
#[rustc_test_marker = "a_test"]
|
|
|
|
pub const a_test: test::TestDescAndFn =
|
|
|
|
test::TestDescAndFn {
|
|
|
|
desc: test::TestDesc {
|
|
|
|
name: test::StaticTestName("a_test"),
|
|
|
|
ignore: false,
|
|
|
|
ignore_message: ::core::option::Option::None,
|
2023-02-08 02:41:28 +00:00
|
|
|
source_file: "/the/src/tests-are-sorted.rs",
|
|
|
|
start_line: 14usize,
|
|
|
|
start_col: 4usize,
|
|
|
|
end_line: 14usize,
|
|
|
|
end_col: 10usize,
|
2022-07-26 21:40:48 +00:00
|
|
|
compile_fail: false,
|
|
|
|
no_run: false,
|
|
|
|
should_panic: test::ShouldPanic::No,
|
|
|
|
test_type: test::TestType::Unknown,
|
|
|
|
},
|
|
|
|
testfn: test::StaticTestFn(|| test::assert_test_result(a_test())),
|
|
|
|
};
|
|
|
|
fn a_test() {}
|
|
|
|
#[rustc_main]
|
2023-04-28 11:05:17 +00:00
|
|
|
#[no_coverage]
|
2022-07-26 21:40:48 +00:00
|
|
|
pub fn main() -> () {
|
|
|
|
extern crate test;
|
|
|
|
test::test_main_static(&[&a_test, &m_test, &z_test])
|
|
|
|
}
|