fix glob collapse tests

This commit is contained in:
jesopo 2020-07-01 18:02:16 +01:00
parent 7f9e6c99fb
commit 57f742ec0a

View file

@ -3,14 +3,14 @@ from ircrobots import glob
class GlobTestCollapse(unittest.TestCase):
def test(self):
c1 = glob._collapse("**?*")
c1 = glob.collapse("**?*")
self.assertEqual(c1, "?*")
c2 = glob._collapse("a**?a*")
c2 = glob.collapse("a**?a*")
self.assertEqual(c2, "a?*a*")
c3 = glob._collapse("?*?*?*?*a")
c3 = glob.collapse("?*?*?*?*a")
self.assertEqual(c3, "????*a")
c4 = glob._collapse("a*?*a?**")
c4 = glob.collapse("a*?*a?**")
self.assertEqual(c4, "a?*a?*")