MCPcopy Create free account
hub / github.com/ControlCplusControlV/Scribe / parse_fibonnaci

Function parse_fibonnaci

crates/papyrus/src/parser.rs:394–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

392
393 #[test]
394 fn parse_fibonnaci() {
395 insta::assert_snapshot!(parse_to_tree(
396 "
397 let f := 1
398 let s := 1
399 let next
400 for { let i := 0 } lt(i, 10) { i := add(i, 1)}
401 {
402 if lt(i, 2) {
403 mstore(i, 1)
404 }
405 if gt(i, 1) {
406 next := add(s, f)
407 f := s
408 s := next
409 mstore(i, s)
410 }
411 }"
412 ));
413 }
414
415 #[test]
416 fn parse_if() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected