1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 21:16:12 +03:00
semantic/semantic-python/test/fixtures/2-01-return-statement.py
Patrick Thomson d9f88fc046 Add a CHECK-TREE directive and simplify esoteric jq tests.
Due to the problems outlined in #245, the tests for return statements
were complicated and not testing useful properties. This patch adds a
new `CHECK-TREE` directive which lets you embed a Core expression
as a string, which is parsed and then compared against the result of
compiling the containing module.
2019-09-18 18:07:43 -04:00

4 lines
73 B
Python

# CHECK-TREE: #record { foo : foo = (\a -> a) }
def foo(a):
return a