diff options
author | maheshgudi | 2016-07-28 18:24:18 +0530 |
---|---|---|
committer | maheshgudi | 2016-07-28 18:24:18 +0530 |
commit | 1b71abc9437d721a41f017db406f312755f5a4c4 (patch) | |
tree | e4fac39cf722608c1f8bf0d208b8a3e8c39f2d9f /yaksh/evaluator_tests/test_bash_evaluation.py | |
parent | 9411ab221e007a6c3e2901ce34f38f2267288b6e (diff) | |
download | online_test-1b71abc9437d721a41f017db406f312755f5a4c4.tar.gz online_test-1b71abc9437d721a41f017db406f312755f5a4c4.tar.bz2 online_test-1b71abc9437d721a41f017db406f312755f5a4c4.zip |
added expected input in traceback for python and made minor changes in bash_stio_evaluator and stdio_evaluator
Diffstat (limited to 'yaksh/evaluator_tests/test_bash_evaluation.py')
-rw-r--r-- | yaksh/evaluator_tests/test_bash_evaluation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/evaluator_tests/test_bash_evaluation.py b/yaksh/evaluator_tests/test_bash_evaluation.py index f954ef0..ee6c1f0 100644 --- a/yaksh/evaluator_tests/test_bash_evaluation.py +++ b/yaksh/evaluator_tests/test_bash_evaluation.py @@ -97,10 +97,10 @@ class BashStdioEvaluationTestCases(unittest.TestCase): user_answer = dedent(""" #!/bin/bash read A read B - echo -n `expr $A + $B` + echo -n `expr $A - $B` """ ) - test_case_data = [{'expected_output': '12', 'expected_input': '5\n6'}] + test_case_data = [{'expected_output': '11', 'expected_input': '5\n6'}] get_class = BashStdioEvaluator() kwargs = {"user_answer": user_answer, "test_case_data": test_case_data |