diff options
author | prathamesh | 2014-03-13 16:36:57 +0530 |
---|---|---|
committer | prathamesh | 2014-03-13 16:36:57 +0530 |
commit | 8f80359989640e77797fedf9f28f981058f47e12 (patch) | |
tree | bfa7c078691598ed235962b7885d8b4e6ea28473 /testapp | |
parent | b46364ad0173f59544cb42b97c42136392f805e6 (diff) | |
download | online_test-8f80359989640e77797fedf9f28f981058f47e12.tar.gz online_test-8f80359989640e77797fedf9f28f981058f47e12.tar.bz2 online_test-8f80359989640e77797fedf9f28f981058f47e12.zip |
test condition added to test_server.py
Diffstat (limited to 'testapp')
-rw-r--r-- | testapp/test_server.py | 10 |
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 |