From 8f80359989640e77797fedf9f28f981058f47e12 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Thu, 13 Mar 2014 16:36:57 +0530 Subject: test condition added to test_server.py --- testapp/test_server.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testapp') diff --git a/testapp/test_server.py b/testapp/test_server.py index 31be855..b639620 100644 --- a/testapp/test_server.py +++ b/testapp/test_server.py @@ -219,6 +219,16 @@ endfunction '/tmp', language="scilab") check_result(result, 'correct answer') + src = """ + funcprot(0) +function[c]=add(a,b) + c=a-b; +endfunction + """ + result = code_server.run_code(src, 'scilab_files/test_add.sce', + '/tmp', language="scilab") + check_result(result, 'correct answer') + src = """ funcprot(0) function[c]=add(a,b) -- cgit