Files
diodeinc__pcb/crates/pcb-zen/tests/module_loader_attrs.rs
2025-07-02 17:25:45 -04:00

24 lines
442 B
Rust

mod common;
use common::TestProject;
#[test]
fn snapshot_module_loader_attrs() {
let env = TestProject::new();
env.add_files_from_blob(
r#"
# --- sub.zen
# Declare optional placeholders without explicit defaults
TestExport = "test"
# --- top.zen
# Import `sub` module with alias `Sub`.
load(".", Sub = "sub")
check(Sub.TestExport == "test", "TestExport should be 'test'")
"#,
);
star_snapshot!(env, "top.zen");
}