MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / def_is_function

Function def_is_function

tests/extraction_suite/lean.rs:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18#[test]
19fn def_is_function() {
20 let source = "def square (n : Nat) : Nat := n * n\n";
21 let result = extract(source);
22 assert!(result.errors.is_empty());
23 let funcs = names_of(&result, NodeKind::Function);
24 assert_eq!(funcs, vec!["square".to_string()]);
25}
26
27#[test]
28fn theorem_is_function() {

Callers

nothing calls this directly

Calls 2

extractFunction · 0.70
names_ofFunction · 0.70

Tested by

no test coverage detected