summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprathamesh2020-03-27 14:00:42 +0530
committerprathamesh2020-03-27 14:00:42 +0530
commit61abccdcb0b0a44f4db60e3bb4d09d1ec5dc50e3 (patch)
tree6826b2ec5fdffdc6806c5b5880775c9fadddcd5a
parent8b95f40cb626a7be629ee6da6e37ea389ceb379d (diff)
downloadonline_test-61abccdcb0b0a44f4db60e3bb4d09d1ec5dc50e3.tar.gz
online_test-61abccdcb0b0a44f4db60e3bb4d09d1ec5dc50e3.tar.bz2
online_test-61abccdcb0b0a44f4db60e3bb4d09d1ec5dc50e3.zip
Add R installation for travis
-rw-r--r--.travis.yml1
-rw-r--r--yaksh/evaluator_tests/test_r_evaluation.py60
2 files changed, 29 insertions, 32 deletions
diff --git a/.travis.yml b/.travis.yml
index a2cf266..892898e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,6 +9,7 @@ services:
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y scilab
+ - sudo apt-get install -y r-base
- export DISPLAY=:99.0
# command to install dependencies
diff --git a/yaksh/evaluator_tests/test_r_evaluation.py b/yaksh/evaluator_tests/test_r_evaluation.py
index d4272a5..b161dc9 100644
--- a/yaksh/evaluator_tests/test_r_evaluation.py
+++ b/yaksh/evaluator_tests/test_r_evaluation.py
@@ -95,14 +95,13 @@ class RAssertionEvaluationTestCase(EvaluatorBaseTest):
'''
)
err = ['Error: input == output is not TRUE\nExecution halted\n']
- kwargs = {
- 'metadata': {
- 'user_answer': user_answer,
- 'file_paths': self.file_paths,
- 'partial_grading': False,
- 'language': 'r'
- }, 'test_case_data': self.test_case_data,
- }
+ kwargs = {'metadata': {
+ 'user_answer': user_answer,
+ 'file_paths': self.file_paths,
+ 'partial_grading': False,
+ 'language': 'r'},
+ 'test_case_data': self.test_case_data,
+ }
# When
grader = Grader(self.in_dir)
@@ -121,14 +120,13 @@ class RAssertionEvaluationTestCase(EvaluatorBaseTest):
}
'''
)
- kwargs = {
- 'metadata': {
- 'user_answer': user_answer,
- 'file_paths': self.file_paths,
- 'partial_grading': False,
- 'language': 'r'
- }, 'test_case_data': self.test_case_data,
- }
+ kwargs = {'metadata': {
+ 'user_answer': user_answer,
+ 'file_paths': self.file_paths,
+ 'partial_grading': False,
+ 'language': 'r'},
+ 'test_case_data': self.test_case_data,
+ }
# When
grader = Grader(self.in_dir)
@@ -147,14 +145,13 @@ class RAssertionEvaluationTestCase(EvaluatorBaseTest):
}
'''
)
- kwargs = {
- 'metadata': {
- 'user_answer': user_answer,
- 'file_paths': self.file_paths,
- 'partial_grading': False,
- 'language': 'r'
- }, 'test_case_data': self.test_case_data,
- }
+ kwargs = {'metadata': {
+ 'user_answer': user_answer,
+ 'file_paths': self.file_paths,
+ 'partial_grading': False,
+ 'language': 'r'},
+ 'test_case_data': self.test_case_data,
+ }
# When
grader = Grader(self.in_dir)
@@ -176,14 +173,13 @@ class RAssertionEvaluationTestCase(EvaluatorBaseTest):
}
'''
)
- kwargs = {
- 'metadata': {
- 'user_answer': user_answer,
- 'file_paths': self.file_paths,
- 'partial_grading': False,
- 'language': 'r'
- }, 'test_case_data': self.test_case_data,
- }
+ kwargs = {'metadata': {
+ 'user_answer': user_answer,
+ 'file_paths': self.file_paths,
+ 'partial_grading': False,
+ 'language': 'r'},
+ 'test_case_data': self.test_case_data,
+ }
# When
grader = Grader(self.in_dir)