mirror of
https://github.com/diodeinc/pcb.git
synced 2026-09-14 20:17:19 +08:00
20 lines
317 B
Rust
20 lines
317 B
Rust
mod common;
|
|
use common::TestProject;
|
|
|
|
#[test]
|
|
fn module_loader_name_override() {
|
|
let env = TestProject::new();
|
|
|
|
env.add_file("sub.zen", "# empty sub module\n");
|
|
|
|
env.add_file(
|
|
"top.zen",
|
|
r#"
|
|
load(".", Sub = "sub")
|
|
Sub(name = "PowerStage")
|
|
"#,
|
|
);
|
|
|
|
star_snapshot!(env, "top.zen");
|
|
}
|