()
| 26 | |
| 27 | #[test] |
| 28 | fn 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] |
| 36 | fn structure_is_struct() { |