Skip to content

Commit

Permalink
Cleaned up tests, removed not test
Browse files Browse the repository at this point in the history
  • Loading branch information
smartycope committed Apr 17, 2024
1 parent e480d3c commit 7fb2051
Show file tree
Hide file tree
Showing 12 changed files with 95 additions and 728 deletions.
3 changes: 3 additions & 0 deletions ezregex/EZRegex.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ def __invert__(self):
def __not__(self):
raise NotImplementedError('The not operator is not implemented. What you probably want is one of anyExcept(), anyCharExcept(), ifNotProceededBy(), or ifNotPreceededBy()')

def __rnot__(self):
raise NotImplementedError('The not operator is not implemented. What you probably want is one of anyExcept(), anyCharExcept(), ifNotProceededBy(), or ifNotPreceededBy()')

def __pos__(self):
comp = self._compile()
return EZRegex(('' if not len(comp) else r'(?:' + comp + r')') + r'+', self.dialect, sanatize=False)
Expand Down
2 changes: 0 additions & 2 deletions tests/groups.py → tests/data/groups.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import random

# from builtins import __builtin__

Set = frozenset # Data will be frozensets, so they can't be mutated.

def words(text):
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7fb2051

Please sign in to comment.