summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests/test_java_evaluation.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-05-25 18:58:31 +0530
committerGitHub2017-05-25 18:58:31 +0530
commiteae6ee7ceb25f78b216a5e2c9d6165513272e4cb (patch)
tree2758e1ec86c533b58d0fa3e7f4f5304bcd2431ec /yaksh/evaluator_tests/test_java_evaluation.py
parent80b67d07ceaf4c73705a27ee0bfc905e30b19ac4 (diff)
parent77f05d3df90a70ff97285deb5bda2d91d99e65d5 (diff)
downloadonline_test-eae6ee7ceb25f78b216a5e2c9d6165513272e4cb.tar.gz
online_test-eae6ee7ceb25f78b216a5e2c9d6165513272e4cb.tar.bz2
online_test-eae6ee7ceb25f78b216a5e2c9d6165513272e4cb.zip
Merge pull request #297 from maheshgudi/difflib
StdIO error output simplification
Diffstat (limited to 'yaksh/evaluator_tests/test_java_evaluation.py')
-rw-r--r--yaksh/evaluator_tests/test_java_evaluation.py7
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