#[test]
#[cfg(target_arch = "x86_64")]
fn macro_expansion_snapshots() {
macrotest::expand("tests/expand/**/*.rs");
}
#[test]
#[cfg(target_arch = "x86_64")]
fn macro_expansion_snapshots_known_bugs() {
macrotest::expand("tests/expand/should-fail/*.rs");
}
#[test]
#[cfg(target_arch = "x86_64")]
fn unexpanded_input_compiles() {
let t = trybuild::TestCases::new();
t.pass("tests/expand/arcane/*.rs");
t.pass("tests/expand/rite/*.rs");
t.pass("tests/expand/autoversion/*.rs");
t.pass("tests/expand/incant/*.rs");
t.pass("tests/expand/rewrite/*.rs");
t.pass("tests/expand/deprecated/*.rs");
t.pass("tests/expand/combinations/*.rs");
}
#[test]
#[cfg(target_arch = "x86_64")]
fn expanded_output_compiles() {
let t = trybuild::TestCases::new();
t.pass("tests/expand/arcane/*.expanded.rs");
t.pass("tests/expand/rite/*.expanded.rs");
t.pass("tests/expand/autoversion/*.expanded.rs");
t.pass("tests/expand/incant/*.expanded.rs");
t.pass("tests/expand/rewrite/*.expanded.rs");
t.pass("tests/expand/deprecated/*.expanded.rs");
t.pass("tests/expand/combinations/*.expanded.rs");
}
#[test]
#[cfg(target_arch = "x86_64")]
fn expanded_output_known_bugs() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/expand/should-fail/*.expanded.rs");
}