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

Function theorem_is_function

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

Source from the content-addressed store, hash-verified

26
27#[test]
28fn theorem_is_function() {
29 let source = "theorem foo : 1 + 1 = 2 := by rfl\n";
30 let result = extract(source);
31 let funcs = names_of(&result, NodeKind::Function);
32 assert_eq!(funcs, vec!["foo".to_string()]);
33}
34
35#[test]
36fn structure_is_struct() {

Callers

nothing calls this directly

Calls 2

extractFunction · 0.70
names_ofFunction · 0.70

Tested by

no test coverage detected