Skip to content

Commit

Permalink
test: Return tests (including regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 7, 2024
1 parent 7e3b0c7 commit 0e236be
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions test/corpus/return.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
===
Return
===

return 69
return
69

# Regression test.

return
a = 420

---

(source_file
(statement
(return
rv: (expression
(literal
(number)
)
)
)
)
(statement
(return)
)
(statement
(expression
(literal
(number)
)
)
)
(statement
(comment)
)
(statement
(return)
)
(statement
(assignment
left: (identifier)
right: (expression
(literal
(number)
)
)
)
)
)

0 comments on commit 0e236be

Please sign in to comment.