Mercurial > public > mercurial-scm > hg-stable
diff tests/test-archive.t @ 12376:97ffc68f71d3
tests: add glob matching for unified tests
This adds a " (glob)" marker that works like a simpler version of
(re): "*" is converted to ".*", and "?" is converted to ".".
Both special characters can be escaped using "\", and the backslash
itself can be escaped as well.
Other glob-style syntax, like "**", "[chars]", or "[!chars]", isn't
supported.
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Wed, 22 Sep 2010 16:06:02 -0500 |
parents | 02990e22150b |
children | 1e2625fe371b |
line wrap: on
line diff
--- a/tests/test-archive.t Wed Sep 22 16:06:00 2010 -0500 +++ b/tests/test-archive.t Wed Sep 22 16:06:02 2010 -0500 @@ -228,8 +228,8 @@ $ unzip -l ../old.zip Archive: ../old.zip \s*Length.* (re) - .*-----.* (re) - .*147.*80.*00:00.*old/\.hg_archival\.txt (re) - .*0.*80.*00:00.*old/old (re) - .*-----.* (re) + *-----* (glob) + *147*80*00:00*old/.hg_archival.txt (glob) + *0*80*00:00*old/old (glob) + *-----* (glob) \s*147\s+2 files (re)