fix glob collapse tests
This commit is contained in:
parent
7f9e6c99fb
commit
57f742ec0a
1 changed files with 4 additions and 4 deletions
|
@ -3,14 +3,14 @@ from ircrobots import glob
|
||||||
|
|
||||||
class GlobTestCollapse(unittest.TestCase):
|
class GlobTestCollapse(unittest.TestCase):
|
||||||
def test(self):
|
def test(self):
|
||||||
c1 = glob._collapse("**?*")
|
c1 = glob.collapse("**?*")
|
||||||
self.assertEqual(c1, "?*")
|
self.assertEqual(c1, "?*")
|
||||||
|
|
||||||
c2 = glob._collapse("a**?a*")
|
c2 = glob.collapse("a**?a*")
|
||||||
self.assertEqual(c2, "a?*a*")
|
self.assertEqual(c2, "a?*a*")
|
||||||
|
|
||||||
c3 = glob._collapse("?*?*?*?*a")
|
c3 = glob.collapse("?*?*?*?*a")
|
||||||
self.assertEqual(c3, "????*a")
|
self.assertEqual(c3, "????*a")
|
||||||
|
|
||||||
c4 = glob._collapse("a*?*a?**")
|
c4 = glob.collapse("a*?*a?**")
|
||||||
self.assertEqual(c4, "a?*a?*")
|
self.assertEqual(c4, "a?*a?*")
|
||||||
|
|
Loading…
Reference in a new issue