()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected