summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testapp/test_server.py10
1 files changed, 10 insertions, 0 deletions
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
@@ -222,6 +222,16 @@ endfunction
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)
c=a+b;
dis(
endfunction