equal
deleted
inserted
replaced
27 single backslash or unknown char |
27 single backslash or unknown char |
28 """ |
28 """ |
29 assert expected.endswith('\n') and output.endswith('\n'), 'missing newline' |
29 assert expected.endswith('\n') and output.endswith('\n'), 'missing newline' |
30 assert not re.search(r'[^ \w\\/\r\n()*?]', expected + output), \ |
30 assert not re.search(r'[^ \w\\/\r\n()*?]', expected + output), \ |
31 'single backslash or unknown char' |
31 'single backslash or unknown char' |
32 match = run_tests.linematch(expected, output) |
32 match = run_tests.TTest.linematch(expected, output) |
33 if isinstance(match, str): |
33 if isinstance(match, str): |
34 return 'special: ' + match |
34 return 'special: ' + match |
35 else: |
35 else: |
36 return bool(match) # do not return match object |
36 return bool(match) # do not return match object |
37 |
37 |