]> git.lizzy.rs Git - rust.git/blob - tests/pretty/tests-are-sorted.pp
Rollup merge of #107819 - clubby789:x-py-root, r=jyn514
[rust.git] / tests / pretty / tests-are-sorted.pp
1 #![feature(prelude_import)]
2 #![no_std]
3 #[prelude_import]
4 use ::std::prelude::rust_2015::*;
5 #[macro_use]
6 extern crate std;
7 // compile-flags: --crate-type=lib --test
8 // pretty-compare-only
9 // pretty-mode:expanded
10 // pp-exact:tests-are-sorted.pp
11
12 extern crate test;
13 #[cfg(test)]
14 #[rustc_test_marker = "m_test"]
15 pub 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             compile_fail: false,
22             no_run: false,
23             should_panic: test::ShouldPanic::No,
24             test_type: test::TestType::Unknown,
25         },
26         testfn: test::StaticTestFn(|| test::assert_test_result(m_test())),
27     };
28 fn m_test() {}
29
30 extern crate test;
31 #[cfg(test)]
32 #[rustc_test_marker = "z_test"]
33 pub const z_test: test::TestDescAndFn =
34     test::TestDescAndFn {
35         desc: test::TestDesc {
36             name: test::StaticTestName("z_test"),
37             ignore: false,
38             ignore_message: ::core::option::Option::None,
39             compile_fail: false,
40             no_run: false,
41             should_panic: test::ShouldPanic::No,
42             test_type: test::TestType::Unknown,
43         },
44         testfn: test::StaticTestFn(|| test::assert_test_result(z_test())),
45     };
46 fn z_test() {}
47
48 extern crate test;
49 #[cfg(test)]
50 #[rustc_test_marker = "a_test"]
51 pub const a_test: test::TestDescAndFn =
52     test::TestDescAndFn {
53         desc: test::TestDesc {
54             name: test::StaticTestName("a_test"),
55             ignore: false,
56             ignore_message: ::core::option::Option::None,
57             compile_fail: false,
58             no_run: false,
59             should_panic: test::ShouldPanic::No,
60             test_type: test::TestType::Unknown,
61         },
62         testfn: test::StaticTestFn(|| test::assert_test_result(a_test())),
63     };
64 fn a_test() {}
65 #[rustc_main]
66 pub fn main() -> () {
67     extern crate test;
68     test::test_main_static(&[&a_test, &m_test, &z_test])
69 }