// SPDX-License-Identifier: MIT //! MARIA imports nothing from the board (the reference's tests/test_boundary.py, first //! test). Its second test is the PyPy 80-attribute layout trap, a Python concern with no //! Rust counterpart; in its place, the hot objects' sizes are reported (not a judge). use std::path::Path; #[test] fn maria_imports_nothing_from_the_board() { let text = std::fs::read_to_string(Path::new(env!("CARGO_MANIFEST_DIR")).join("src/maria.rs")).unwrap(); let uses: Vec<&str> = text.lines().filter(|l| l.trim_start().starts_with("use ")).collect(); assert!(uses.iter().all(|l| !l.contains("crate::")), "{uses:?}"); assert!(!text.contains("crate::board")); }