2022-07-26 16:40:48 -05:00
|
|
|
#![feature(prelude_import)]
|
|
|
|
#![no_std]
|
|
|
|
#[prelude_import]
|
|
|
|
use ::std::prelude::rust_2015::*;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate std;
|
2023-02-07 20:41:28 -06:00
|
|
|
// compile-flags: --crate-type=lib --test --remap-path-prefix={{src-base}}/=/the/src/ --remap-path-prefix={{src-base}}\=/the/src/
|
2022-07-26 16:40:48 -05: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-07 20:41:28 -06:00
|
|
|
source_file: "/the/src/tests-are-sorted.rs",
|
|
|
|
start_line: 7usize,
|
|
|
|
start_col: 4usize,
|
|
|
|
end_line: 7usize,
|
|
|
|
end_col: 10usize,
|
2022-07-26 16:40:48 -05:00
|
|
|
compile_fail: false,
|
|
|
|
no_run: false,
|
|
|
|
should_panic: test::ShouldPanic::No,
|
|
|
|
test_type: test::TestType::Unknown,
|
|
|
|
},
|
2024-01-20 18:26:28 -06:00
|
|
|
testfn: test::StaticTestFn(#[coverage(off)] ||
|
|
|
|
test::assert_test_result(m_test())),
|
2022-07-26 16:40:48 -05:00
|
|
|
};
|
|
|
|
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-07 20:41:28 -06: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 16:40:48 -05:00
|
|
|
compile_fail: false,
|
|
|
|
no_run: false,
|
|
|
|
should_panic: test::ShouldPanic::No,
|
|
|
|
test_type: test::TestType::Unknown,
|
|
|
|
},
|
2024-01-20 18:26:28 -06:00
|
|
|
testfn: test::StaticTestFn(#[coverage(off)] ||
|
|
|
|
test::assert_test_result(z_test())),
|
2022-07-26 16:40:48 -05:00
|
|
|
};
|
2023-02-07 20:41:28 -06:00
|
|
|
#[ignore = "not yet implemented"]
|
2022-07-26 16:40:48 -05: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-07 20:41:28 -06:00
|
|
|
source_file: "/the/src/tests-are-sorted.rs",
|
|
|
|
start_line: 14usize,
|
|
|
|
start_col: 4usize,
|
|
|
|
end_line: 14usize,
|
|
|
|
end_col: 10usize,
|
2022-07-26 16:40:48 -05:00
|
|
|
compile_fail: false,
|
|
|
|
no_run: false,
|
|
|
|
should_panic: test::ShouldPanic::No,
|
|
|
|
test_type: test::TestType::Unknown,
|
|
|
|
},
|
2024-01-20 18:26:28 -06:00
|
|
|
testfn: test::StaticTestFn(#[coverage(off)] ||
|
|
|
|
test::assert_test_result(a_test())),
|
2022-07-26 16:40:48 -05:00
|
|
|
};
|
|
|
|
fn a_test() {}
|
|
|
|
#[rustc_main]
|
2023-08-09 09:57:16 -05:00
|
|
|
#[coverage(off)]
|
2022-07-26 16:40:48 -05:00
|
|
|
pub fn main() -> () {
|
|
|
|
extern crate test;
|
|
|
|
test::test_main_static(&[&a_test, &m_test, &z_test])
|
|
|
|
}
|