13 def _preprocess(self, input_text, conds):
15 return loader._Preprocess(input_text,
'<file>', conds)
17 def _preprocess_test(self, input_text, conds, expected_text):
19 if output_text != expected_text:
26---''' % (expected_text, output_text)
29 def _preprocess_error_test(self, input_text, conds, expected_message):
33 except Exception
as e:
35 if str(e).
find(expected_message) == -1:
36 self.fail(
"'%s' does not contain '%s'" % (e, expected_message))
38 self.fail(
"missing error, expected '%s'" % expected_message)
46 input_text =
'''//$ comment 1
62 input_text, {'A':
True},
'''
79 input_text, {'A':
False},
'''
90 '$if does not have single variable')
126if __name__ ==
"__main__":
127 logging.config.fileConfig(
"logging.conf")
128 if __name__ ==
'__main__':
int find(T *array, int N, T item)
def _preprocess(self, input_text, conds)
def _preprocess_error_test(self, input_text, conds, expected_message)
def _preprocess_test(self, input_text, conds, expected_text)