1# test splitting with pattern matches that can be empty 2# 3# CPython 3.5 issues a FutureWarning for these tests because their 4# behaviour will change in a future version. MicroPython just stops 5# splitting as soon as an empty match is found. 6 7try: 8 import ure as re 9except ImportError: 10 print("SKIP") 11 raise SystemExit 12 13r = re.compile(" *") 14s = r.split("a b c foobar") 15print(s) 16 17r = re.compile("x*") 18s = r.split("foo") 19print(s) 20 21r = re.compile("x*") 22s = r.split("axbc") 23print(s) 24