diff options
author | Hardik Ghaghada | 2013-04-26 14:02:28 +0530 |
---|---|---|
committer | Hardik Ghaghada | 2013-04-26 14:02:28 +0530 |
commit | 340e9b28961a4a927e9f039a5cef7111bbf69bf0 (patch) | |
tree | 056d7b16a104ce7afd375505feab7a879d3f7f99 /testapp/test_server.py | |
parent | ca63599e6fecbd513d47092f5aeb03726024bd98 (diff) | |
parent | 29beb24fe345e7e20919a6122ffb3e0f13371143 (diff) | |
download | online_test-340e9b28961a4a927e9f039a5cef7111bbf69bf0.tar.gz online_test-340e9b28961a4a927e9f039a5cef7111bbf69bf0.tar.bz2 online_test-340e9b28961a4a927e9f039a5cef7111bbf69bf0.zip |
Resolved Conflicts
Diffstat (limited to 'testapp/test_server.py')
-rw-r--r-- | testapp/test_server.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/testapp/test_server.py b/testapp/test_server.py index e81daf2..0790816 100644 --- a/testapp/test_server.py +++ b/testapp/test_server.py @@ -35,28 +35,6 @@ def test_python(): language="python") check_result(result, 'nameerror') -def test_c(): - """Test if server runs Python code as expected.""" - src = 'while True: pass' - result = code_server.run_code(src, '', '/tmp', language="c") - check_result(result, 'more than ') - - src = 'x = 1' - result = code_server.run_code(src, 'assert x == 1', '/tmp', - language="c") - check_result(result, 'correct answer') - - result = code_server.run_code(src, 'assert x == 0', '/tmp', - language="c") - check_result(result, 'assertionerror') - - src = 'C lang. Code' - result = code_server.run_code(src, 'assert x == 0', '/tmp', - language="c") - check_result(result, 'nameerror') - - - def test_bash(): """Test if server runs Bash code as expected.""" src = """ |