2023-09-29 19:30:38 +00:00
|
|
|
{expect_fail}
|
2023-04-19 02:38:18 +00:00
|
|
|
#[test]
|
2023-09-29 19:30:38 +00:00
|
|
|
fn autogen_{name}() -> Result<(), Box<dyn std::error::Error>> {{
|
2023-09-12 19:15:21 +00:00
|
|
|
let org_path = "{path}";
|
|
|
|
let org_contents = std::fs::read_to_string(org_path).expect("Read org file.");
|
|
|
|
organic::compare::run_anonymous_compare(org_contents.as_str())?;
|
|
|
|
Ok(())
|
2023-04-19 02:38:18 +00:00
|
|
|
}}
|
2023-09-29 19:30:38 +00:00
|
|
|
|
|
|
|
{expect_fail}
|
|
|
|
#[test]
|
|
|
|
fn autogen_la_{name}() -> Result<(), Box<dyn std::error::Error>> {{
|
|
|
|
let org_path = "{path}";
|
|
|
|
let org_contents = std::fs::read_to_string(org_path).expect("Read org file.");
|
|
|
|
let global_settings = {{
|
|
|
|
let mut global_settings = organic::GlobalSettings::default();
|
|
|
|
global_settings.list_allow_alphabetical = true;
|
|
|
|
global_settings
|
|
|
|
}};
|
|
|
|
organic::compare::run_anonymous_compare_with_settings(org_contents.as_str(), &global_settings)?;
|
|
|
|
Ok(())
|
|
|
|
}}
|