diff options
author | ankitjavalkar | 2016-05-09 13:00:04 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-05-10 11:54:34 +0530 |
commit | c384c60c6d7fb5d30f3f929c518e0b41e084c4c4 (patch) | |
tree | d5b937e90bc7d3051b9c9128c4e1560b09db1c2c /yaksh/evaluator_tests/test_c_cpp_evaluation.py | |
parent | d953f6f9e62671eeb5d6ea6498475167301dfe91 (diff) | |
download | online_test-c384c60c6d7fb5d30f3f929c518e0b41e084c4c4.tar.gz online_test-c384c60c6d7fb5d30f3f929c518e0b41e084c4c4.tar.bz2 online_test-c384c60c6d7fb5d30f3f929c518e0b41e084c4c4.zip |
- Adhere to 80 columns
- add docstrings
- Fix further tests
Diffstat (limited to 'yaksh/evaluator_tests/test_c_cpp_evaluation.py')
-rw-r--r-- | yaksh/evaluator_tests/test_c_cpp_evaluation.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yaksh/evaluator_tests/test_c_cpp_evaluation.py b/yaksh/evaluator_tests/test_c_cpp_evaluation.py index a07150d..71fb843 100644 --- a/yaksh/evaluator_tests/test_c_cpp_evaluation.py +++ b/yaksh/evaluator_tests/test_c_cpp_evaluation.py @@ -8,14 +8,15 @@ class CEvaluationTestCases(unittest.TestCase): self.test_case_data = [{"test_case": "c_cpp_files/main.cpp"}] self.in_dir = "/tmp" self.timeout_msg = ("Code took more than {0} seconds to run. " - "You probably have an infinite loop in your code.").format(SERVER_TIMEOUT) + "You probably have an infinite loop in your" + " code.").format(SERVER_TIMEOUT) def test_correct_answer(self): user_answer = "int add(int a, int b)\n{return a+b;}" get_class = CppCodeEvaluator(self.in_dir) kwargs = {'user_answer': user_answer, - 'test_case_data': self.test_case_data - } + 'test_case_data': self.test_case_data + } result = get_class.evaluate(**kwargs) self.assertTrue(result.get('success')) self.assertEquals(result.get('error'), "Correct answer") |