#[ allow( unused_imports ) ] use super::*; // use test_tools::exposed::*; #[ allow( unused_imports ) ] use TheModule::prelude::*; // qqq : do negative testing /* aaa : Dmytro : done */ tests_impls! { #[ cfg( any( feature = "compiletime_assertions", feature = "diagnostics_compiletime_assertions" ) ) ] fn cta_true_pass() { // test.case( "check feature, true" ); cta_true!( any( feature = "compiletime_assertions", feature = "diagnostics_compiletime_assertions" ) ); // zzz : try ( 1 + 2 == 3 ) } } #[ cfg( feature = "compiletime_assertions" ) ] #[ test_tools::rustversion::nightly ] #[ test ] fn cta_trybuild_tests() { use test_tools::dependency::trybuild; let t = trybuild::TestCases::new(); t.compile_fail( "../../../rust/test/diagnostics/inc/cta_true_fail.rs" ); } #[ cfg( feature = "diagnostics_compiletime_assertions" ) ] #[ test_tools::rustversion::nightly ] #[ test ] fn cta_trybuild_tests() { use test_tools::dependency::trybuild; let t = trybuild::TestCases::new(); t.compile_fail( "../../../rust/test/diagnostics/inc/wtools_cta_true_fail.rs" ); } // tests_index! { cta_true_pass, }