summaryrefslogtreecommitdiff
path: root/testapp/exam/xmlrpc_clients.py
diff options
context:
space:
mode:
authorprathamesh2014-03-03 17:54:18 +0530
committerprathamesh2014-03-03 17:54:18 +0530
commit2c8176e4a37ca3a3ecc900bc011da894a90ce801 (patch)
tree4766a423d5387b4cca511b58142d0218c899bda9 /testapp/exam/xmlrpc_clients.py
parentb2a95b4f99debc4d165bb0122b03b8e67f26b669 (diff)
downloadonline_test-2c8176e4a37ca3a3ecc900bc011da894a90ce801.tar.gz
online_test-2c8176e4a37ca3a3ecc900bc011da894a90ce801.tar.bz2
online_test-2c8176e4a37ca3a3ecc900bc011da894a90ce801.zip
Autochecks scilab function.
A method is created that checks the scilab function submitted by the student. The method removes the terminating commands in scilab. If errors are present then it returns error, else provides input to the function and checks for the expected output. If function returns correct output for all the inputs then the function is graded correct, else throws the error message.
Diffstat (limited to 'testapp/exam/xmlrpc_clients.py')
-rw-r--r--testapp/exam/xmlrpc_clients.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testapp/exam/xmlrpc_clients.py b/testapp/exam/xmlrpc_clients.py
index cc21e62..14ebf27 100644
--- a/testapp/exam/xmlrpc_clients.py
+++ b/testapp/exam/xmlrpc_clients.py
@@ -26,6 +26,7 @@ class CodeServerProxy(object):
"C": "run_c_code",
"C++": "run_cplus_code",
"java": "run_java_code",
+ "scilab": "run_scilab_code",
}
def run_code(self, answer, test_code, user_dir, language):