Files
diodeinc__pcb/crates/pcb-star/tests/module_loader_attrs.rs
Lenny Khazan e852477546 Initial release (#5)
* Initial release

* cargo-dist

* build and test CI

* update ubuntu workflow

* fmt

* ubuntu: install deps

* clippy: 0.1.88 fixes

* format

* install clippy

* Update README.md

* Don't run cargo-dist on PRs
2025-07-01 04:06:08 -04:00

24 lines
445 B
Rust

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