Searched refs:test (Results 1 - 25 of 41) sorted by relevance

12

/ec/ECSpooler/backends/erlang/
H A DsimpleTest.erl0 test(A, A) -> true;
2 test(_, _) -> false. function
1 test(A, A) -> true; function
H A DpermTest.erl0 test([],[]) -> true;
2 test(L1, L2) -> if length(L1) /= length(L2) -> false; function
3 true -> lists:member(hd(L1), L2) andalso test(tl(L1), lists:delete(hd(L1),L2))
1 test([],[]) -> true; function
H A DErlang.py55 start() -> io:fwrite("isEqual=~w;;expected=~w;;received=~w", [test(o1(), o2()), o1(), o2()]).
83 'and test data as parameters of this funtion. '+
96 test = simpleTest, variable
107 test = permTest, variable
119 student and model solution on given test data.
137 def _preProcessCheckSyntax(self, test, src, **kwargs):
151 def _postProcessCheckSyntax(self, test, message):
162 def _preProcessCheckSemantic(self, test, src, **kwargs):
173 Runs sematic test on a Erlang program.
178 # test fo
[all...]
/ec/ECSpooler/backends/python/
H A DsimpleTest.py3 def test(a, b): function
H A DpermTest.py3 def test(list1, list2): function
H A DPython.py27 # load Haskell function to do a simple test
34 # load Haskell function to do a test which allows permutation of list elems
48 # must be named 'test'
54 print >> sys.stdout, \"isEqual=\" + str(test(o1, o2)) + \";;expected=\" + str(o1) + \";;received=\" + str(o2)
85 'and test data as parameters of this funtion. '+
97 description = 'Simple test; only exact result are allowed.',
98 test = simpleTest, variable
107 test = permTest, variable
136 def _postProcessCheckSyntax(self, test, message):
150 # test fo
[all...]
/ec/ECSpooler/backends/cl/
H A DsimpleTest.lisp1 (defun test (a b) (equal a b)) function
H A DCl.py32 # load Cl function to do a simple test
39 # load Cl function to do a test which allows permutation of list elems
76 ;; test function
79 ;; print test results
81 (test ${%s} ${%s}) ; model, student
86 NS_MODEL, NS_STUDENT, # form (test ...)
117 'and test data as parameters of this funtion, e.g, '+
131 test = simpleTest, variable
143 # test = permTest,
156 model solution on given test dat
[all...]
/ec/ECSpooler/backends/java/
H A DsimpleTest.java1 private static boolean test(Object a, Object b) method
H A DJava.py34 # load Java function to do a simple test
40 # load Java function to do a test which allows permutation of list elems
78 Boolean eql = new Boolean(test(exp, rec));
105 'or as a parameter in a test call.',
114 description = 'Enter one or more test calls. A test call is ' +
119 'Each test call must be written in a single line.',
131 test = simpleTest, variable
142 # test = permTest,
182 student and model solution on a given set of test dat
[all...]
/ec/ECSpooler/backends/junit/junit_libs/
H A DTestClassWithPackage.jar ... META-INF/MANIFEST.MF org/educomponents/test/TestClassWithPackage.class TestClassWithPackage.java package org.educomponents ...
/ec/ECSpooler/backends/scheme/
H A DsimpleTest.scm1 (define (test a b) (equal? a b)) function
H A DScheme.py27 # load Scheme function to do a simple test
34 # load Haskell function to do a test which allows permutation of list elems
75 ;; test function
78 ;; print test results
80 (printf "isEqual=~s;;expected=~s;;received=~s" (test ms ss) ms ss))
109 'and test data as parameters of this funtion, e.g, '+
123 test = simpleTest, variable
135 test = permTest, variable
147 model solution on given test data.
166 def _preProcessCheckSyntax(self, test, sr
[all...]
H A DpermTest.scm20 (define (test a b) (is-permutation a b) ) function
/ec/ECSpooler/backends/prolog/
H A DpermTest.pl0 test('true') :-
3 test('true') :-
6 test('false').
8 % Main: compare model and student solution with test/1, find all model
10 :- test(E), findall(X, model(X), Ms), findall(X, student(X), Ss),
H A DsimpleTest.pl3 test('false') :- model(M), \+ student(M), !.
4 test('false') :- student(S), \+ model(S), !.
6 test('true').
8 % Main: compare model and student solution with test/1, find all model
10 :- test(E), findall(X, model(X), Ms), findall(X, student(X), Ss),
H A DProlog.py108 'and test data as parameters of this funtion. '+
121 test = SIMPLE_TEST, variable
132 test = PERM_TEST, variable
143 test = PRED_TEST, variable
160 student and model solution on given test data.
192 def _preProcessCheckSyntax(self, test, src, **kwargs):
206 def _postProcessCheckSyntax(self, test, message):
227 (int(match[1]) - test.lineNumberOffset, match[3]),
238 test data. For
253 def _preProcessCheckSemantic(self, test, sr
[all...]
H A DpredTest.pl9 test('true') :- meta_test.
10 test('false').
12 % Main: compare model and student solution with test/1, find all model
14 :- test(E),
/ec/ECSpooler/backends/haskell/
H A DHaskell.py37 # load Haskell function to do a simple test
44 # load Haskell function to do a test which allows permutation of list elems
51 # load Haskell function to do a test which allows tolerance
113 'and test data as parameters of this funtion. '+
126 test = simpleTest, variable
138 test = permTest, variable
150 test = toleranceTest, variable
165 student and model solution on given test data.
183 def _preProcessCheckSyntax(self, test, src, **kwargs):
189 @param: test
[all...]
/ec/ECSpooler/backends/haskellext/
H A DHaskellExt.py76 The test calls will be written to the model and student's modules. The
102 # test for available test specs
106 msg = 'No test specification selected.'
110 # test for defined repeat fields in the schema definition
116 # test for available test data
121 msg = 'No test data defined.'
155 # run selected test specifications
156 for test i
[all...]
/ec/ECSpooler/backends/haskellqc/
H A DHaskellQC.py90 # test environments
96 #test = '',
123 def _postProcessCheckSemantic(self, test, message):
127 @param: test:
140 # test for available test specs
144 msg = 'No test specification selected.'
183 # run selected test specifications
184 for test in testSpecs:
188 LOG.debug('Running semantic check with test
[all...]
/ec/ECSpooler/backends/javare/
H A DJavaRE.py35 # load Java function to do a simple test
76 'and test data as parameters of this funtion. '+
89 test = findFirstGroup0, variable
144 * Need better test environments (find all, compare sub groups, etc.)
194 def _preProcessCheckSyntax(self, test, src, **kwargs):
217 return (test.syntax % src[1:-1], CLASS_SYNTACTIC_CHECK)
220 def _postProcessCheckSyntax(self, test, message):
233 'line: %d' % (int(match[1]) - test.lineNumberOffset),
243 Runs sematic test on a Java program.
252 # test fo
[all...]
/ec/ECSpooler/backends/pyunit/
H A DPyUnit.py69 # test environments
83 #RE_SELF = re.compile('def test.+?\(')
111 def _postProcessCheckSyntax(self, test, message):
125 # test for available test specs
129 msg = 'No test specification selected.'
152 # run selected test specifications
153 for test in self._getTests(job):
155 LOG.debug('Running semantic check with test: %s' %
156 test
[all...]
/ec/ECSpooler/backends/sql/
H A DSQL.py38 description = 'If set, the test will not be aborted after row count of result set is wrong - ' +
94 description = 'Simple test.',
145 # test for available test specs
149 msg = 'No test specification selected.'
166 # run selected test specifications
167 for test in self._getTests(job):
169 LOG.debug('Running SQL check with test: %s' % test.getName())
172 interpreter = test
[all...]
/ec/ECSpooler/backends/junit/
H A DJUnit.py231 def _preProcessCheckSyntax(self, test, src, **kwargs):
246 def _postProcessCheckSyntax(self, test, message):
272 @param jobId: ID for this test job
273 @param test: name of the selected test environment (cf. self.testSchema)
274 @return: a BackendResult or None if test succeeded
281 # test term (e.g., student's source code)
287 LOG.info('Running syntax check with test: %s' % testSpec.getName())
329 msg = 'No compiler/interpreter defined (test spec: %s).' \
364 message = 'No test specificatio
[all...]

Completed in 81 milliseconds

12