1pub use isoloom_spec::files::GeneratedFile;
4
5pub const OUTPUT_DIR: &str = ".isoloom";
7
8#[must_use]
11pub fn header(comment: &str) -> String {
12 format!(
13 "{comment} Generated by isoloom from isoloom.yml. Don't edit: change isoloom.yml and run\n{comment} `isoloom generate`. `isoloom check` fails when this file is out of date.\n"
14 )
15}
16
17#[cfg(test)]
18mod tests {
19 #[test]
20 fn the_header_says_how_to_change_the_file_in_its_own_comments() {
21 assert_eq!(
22 super::header("//"),
23 "// Generated by isoloom from isoloom.yml. Don't edit: change isoloom.yml and run\n// `isoloom generate`. `isoloom check` fails when this file is out of date.\n"
24 );
25 }
26}