test(layout): use valid record types for non-port lead fixtures

This commit is contained in:
2026-09-24 20:40:41 -07:00
parent 2be8c7f292
commit 074051261a
+5
View File
@@ -18,6 +18,11 @@ fn fixture(ports: bool, gap: f32) -> Fixture {
let a = p.add_element(kind, Layer::Sa, "Source", None).unwrap();
let b = p.add_element(kind, Layer::Sa, "Target", None).unwrap();
let c = p.add_element(kind, Layer::Sa, "Blocker", None).unwrap();
for element in p.elements.values_mut() {
if let Some(SharedBody::DataType { definition, .. }) = element.shared_mut() {
*definition = DataTypeDefinition::Record { supertype: None };
}
}
let edge = p.relate(
if ports {
RelationKind::FunctionalExchange