aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pyre2/py2/tests/test_pattern.txt
blob: aab47359a293f0200f8f727b0b7177a568600c37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
pattern tests
=============

    >>> import re2
    >>> re2.set_fallback_notification(re2.FALLBACK_EXCEPTION)

We should be able to get back what we put in.

    >>> re2.compile("(foo|b[a]r?)").pattern
    '(foo|b[a]r?)'

    >>> re2.set_fallback_notification(re2.FALLBACK_QUIETLY)