~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_globbing.py

  • Committer: Kent Gibson
  • Date: 2007-03-02 00:34:38 UTC
  • mto: (2319.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2320.
  • Revision ID: warthog618@gmail.com-20070302003438-c9ju53dq662l0edr
Review fixes for lp86451 patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
            (u'[a-z]',
115
115
             [u'a', u'q', u'f'],
116
116
             [u'A', u'Q', u'F']),
117
 
            (ur'[^a-z]',
 
117
            (u'[^a-z]',
118
118
             [u'A', u'Q', u'F'],
119
119
             [u'a', u'q', u'f']),
120
120
            (u'[!a-z]foo',
121
121
             [u'Afoo', u'.foo'],
122
122
             [u'afoo', u'ABfoo']),
123
 
            (ur'foo[!a-z]bar',
 
123
            (u'foo[!a-z]bar',
124
124
             [u'fooAbar', u'foo.bar'],
125
125
             [u'foojbar']),
126
 
            (ur'[\x20-\x30\u8336]',
 
126
            (u'[\x20-\x30\u8336]',
127
127
             [u'\040', u'\044', u'\u8336'],
128
128
             [u'\x1f']),
129
 
            (ur'[^\x20-\x30\u8336]',
 
129
            (u'[^\x20-\x30\u8336]',
130
130
             [u'\x1f'],
131
131
             [u'\040', u'\044', u'\u8336']),
132
132
            ])
133
133
 
134
134
    def test_regex(self):
135
135
        self.assertMatch([
136
 
            (ur'RE:(a|b|c+)',
137
 
             [u'a', u'b', u'ccc'],
138
 
             [u'd', u'aa', u'c+', u'-a']),
139
 
            (ur'RE:(?:a|b|c+)',
140
 
             [u'a', u'b', u'ccc'],
141
 
             [u'd', u'aa', u'c+', u'-a']),
142
 
            (ur'RE:(?P<a>.)(?P=a)',
 
136
            (u'RE:(a|b|c+)',
 
137
             [u'a', u'b', u'ccc'],
 
138
             [u'd', u'aa', u'c+', u'-a']),
 
139
            (u'RE:(?:a|b|c+)',
 
140
             [u'a', u'b', u'ccc'],
 
141
             [u'd', u'aa', u'c+', u'-a']),
 
142
            (u'RE:(?P<a>.)(?P=a)',
143
143
             [u'a'],
144
144
             [u'ab', u'aa', u'aaa']),
145
145
            # test we can handle odd numbers of trailing backslashes