mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +08:00
Carry full function types in the registry rows
This commit is contained in:
@@ -1136,6 +1136,16 @@ mod graphene_test {
|
||||
assert_eq!(GNode::eval(&wired, &ctx), GPoll::Final(true));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ctor_registration_populates_the_node_registry() {
|
||||
let registry = core_types::registry::NODE_REGISTRY.lock().unwrap();
|
||||
let rows = registry
|
||||
.iter()
|
||||
.find_map(|(id, rows)| id.as_str().ends_with("::AddNode").then_some(rows))
|
||||
.expect("AddNode rows registered at startup");
|
||||
assert_eq!(rows.len(), 6);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn generic_add_registers_one_entry_per_implementation() {
|
||||
let arena = Arena::new(64);
|
||||
|
||||
Reference in New Issue
Block a user