use std::path::{Path, PathBuf}; #[test] fn canonical_examples_do_not_author_browser_javascript() { // req: examples/005 let root = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap(); let examples = root.join("examples"); let mut failures = Vec::new(); scan_examples(&examples, &mut |path, text| { if path.components().any(|part| part.as_os_str() == "tests") { return; } for (line_no, line) in text.lines().enumerate() { let trimmed = line.trim(); if trimmed.contains(""#) { failures.push(format!( "{}:{}: inline