Lines Matching refs:test
27 # 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,
135 test = permTest,
147 model solution on given test data.
166 def _preProcessCheckSyntax(self, test, src, **kwargs):
172 if test.syntax:
173 result = re.sub('\$\{SOURCE\}', src, test.syntax)
181 def _postProcessCheckSyntax(self, test, message):
194 'line:%d' % (int(matches[0])-test.lineNumberOffset),
204 def _postProcessCheckSemantic(self, test, message):
208 return self._postProcessCheckSyntax(test, message)
218 # test for available test specs
222 msg = 'No test specification selected.'
226 # test for defined repeat fields in the schema definition
232 # test for available test data
237 msg = 'No test data defined.'
266 # run selected test specifications
267 for test in testSpecs:
271 LOG.debug('Running semantic check with test: %s' %
272 test.getName())
275 interpreter = test.interpreter
278 wrapper = test.semantic
289 # insert test function in wrapper code
290 wrapper = re.sub('\$\{testFunction\}', test.test, wrapper)
295 # run with all test data
310 test.encoding)
316 test.encoding)
322 test.encoding)
340 % (t, test.getName(),
341 self._postProcessCheckSemantic(test, result))
363 % (t, test.getName())