diff options
author | adityacp | 2017-06-12 18:24:01 +0530 |
---|---|---|
committer | adityacp | 2017-06-12 18:24:01 +0530 |
commit | 3552f4bc8082fc3ecc5290029cac6a839cd3b247 (patch) | |
tree | bb2014bed4c67f644932070611bcdb68eb234912 /yaksh/evaluator_tests/test_java_evaluation.py | |
parent | a002ab59dbff856ee3838078cbe4f8fa439fd894 (diff) | |
parent | eae6ee7ceb25f78b216a5e2c9d6165513272e4cb (diff) | |
download | online_test-3552f4bc8082fc3ecc5290029cac6a839cd3b247.tar.gz online_test-3552f4bc8082fc3ecc5290029cac6a839cd3b247.tar.bz2 online_test-3552f4bc8082fc3ecc5290029cac6a839cd3b247.zip |
Add latest changes after rebase
Diffstat (limited to 'yaksh/evaluator_tests/test_java_evaluation.py')
-rw-r--r-- | yaksh/evaluator_tests/test_java_evaluation.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yaksh/evaluator_tests/test_java_evaluation.py b/yaksh/evaluator_tests/test_java_evaluation.py index ea558ed..c733586 100644 --- a/yaksh/evaluator_tests/test_java_evaluation.py +++ b/yaksh/evaluator_tests/test_java_evaluation.py @@ -349,10 +349,11 @@ class JavaStdIOEvaluationTestCases(EvaluatorBaseTest): result = grader.evaluate(kwargs) # Then - lines_of_error = len(result.get('error')[0].splitlines()) + lines_of_error = len(result.get('error')[0].get('error_line_numbers')) + result_error = result.get('error')[0].get('error_msg') self.assertFalse(result.get('success')) - self.assert_correct_output("Incorrect", result.get('error')) - self.assertTrue(lines_of_error > 1) + self.assert_correct_output("Incorrect", result_error) + self.assertTrue(lines_of_error > 0) def test_error(self): # Given |