From 382e60e91a21094baf836ff3aefa35c510a836af Mon Sep 17 00:00:00 2001 From: J Henry Waugh Date: Fri, 21 Aug 2020 22:49:15 -0500 Subject: [PATCH] Move UI tests to separate tests file --- codegen/src/function.rs | 9 --------- codegen/tests/ui_tests.rs | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 codegen/tests/ui_tests.rs diff --git a/codegen/src/function.rs b/codegen/src/function.rs index 011ff650..89358274 100644 --- a/codegen/src/function.rs +++ b/codegen/src/function.rs @@ -1067,12 +1067,3 @@ mod generate_tests { assert_streams_eq(item_fn.generate(), expected_tokens); } } - -#[cfg(test)] -mod ui_tests { - #[test] - fn all() { - let t = trybuild::TestCases::new(); - t.compile_fail("ui_tests/*.rs"); - } -} diff --git a/codegen/tests/ui_tests.rs b/codegen/tests/ui_tests.rs new file mode 100644 index 00000000..ef7bf58f --- /dev/null +++ b/codegen/tests/ui_tests.rs @@ -0,0 +1,8 @@ +#![cfg(test)] +mod ui_tests { + #[test] + fn all() { + let t = trybuild::TestCases::new(); + t.compile_fail("ui_tests/*.rs"); + } +}