test(layout): use valid record types for non-port lead fixtures
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user