From 23666c777b98402ff539816e291a979d1b62a724 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Mon, 31 Jan 2022 03:10:36 -0500 Subject: Move around tests in the categories; Add missing tests We now also test for local variables in functions, and add a simple test to see if imports work properly. --- tests/functions.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/functions.sh') diff --git a/tests/functions.sh b/tests/functions.sh index 3e87b37..e8c79f2 100755 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -22,6 +22,11 @@ fn test(a: int, b: int) { return a+b; } fn main() { return test(2, 3); } EOF +assert_exit_status_stdin 5 <