comparison tests/run-tests.py @ 12377:a5b77eb0409b

tests: various fixes for new unified test pattern format
author Matt Mackall <mpm@selenic.com>
date Wed, 22 Sep 2010 18:20:47 -0500
parents 97ffc68f71d3
children 41f2fa72fa82
comparison
equal deleted inserted replaced
12376:97ffc68f71d3 12377:a5b77eb0409b
516 res = '' 516 res = ''
517 while i < n: 517 while i < n:
518 c = el[i] 518 c = el[i]
519 i += 1 519 i += 1
520 if c == '\\' and el[i] in '*?\\': 520 if c == '\\' and el[i] in '*?\\':
521 res += el[i-1:i+1] 521 res += el[i - 1:i + 1]
522 i += 1 522 i += 1
523 elif c == '*': 523 elif c == '*':
524 res += '.*' 524 res += '.*'
525 elif c == '?': 525 elif c == '?':
526 res += '.' 526 res += '.'