Skip to content

Commit

Permalink
Add integration test for function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Smit-create committed Jan 30, 2022
1 parent 531db27 commit b2d0a3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions integration_tests/expr_05.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
def test_multiply(a: i32, b: i32) -> i32:
return a*b

def main() -> i32:
a: i32
b: i32
a = 10
b = -5
print(test_multiply(a, b))
return 0
3 changes: 2 additions & 1 deletion integration_tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"expr_01.py",
"expr_02.py",
"expr_03.py",
"expr_04.py"
"expr_04.py",
"expr_05.py",
]

def main():
Expand Down

0 comments on commit b2d0a3e

Please sign in to comment.