From 26f53bf85d7fd49b4a81d2adf8caa69778895a9f Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 5 Aug 2024 17:48:48 +0800 Subject: [PATCH] add `setcomp` --- tests/{69_setcomp.py => 48_setcomp.py} | 0 tests/70_re.py | 19 ------------------- 2 files changed, 19 deletions(-) rename tests/{69_setcomp.py => 48_setcomp.py} (100%) delete mode 100644 tests/70_re.py diff --git a/tests/69_setcomp.py b/tests/48_setcomp.py similarity index 100% rename from tests/69_setcomp.py rename to tests/48_setcomp.py diff --git a/tests/70_re.py b/tests/70_re.py deleted file mode 100644 index bbc11e03..00000000 --- a/tests/70_re.py +++ /dev/null @@ -1,19 +0,0 @@ -# import re - -# # test match, search, sub, split - -# m = re.search('测试','123测试测试') -# assert m.span() == (3,5) -# assert m.group(0) == '测试' - -# assert re.match('测试','123测试测试') is None -# assert re.sub('测试','xxx','123测试12321测试') == '123xxx12321xxx' - -# # this is different from cpython, the last empty string is not included -# assert re.split('测试','测试123测试12321测试') == ['', '123', '12321'] - -# assert re.split(',','123,456,789,10') == ['123', '456', '789', '10'] -# assert re.split(',',',123,456,789,10') == ['', '123', '456', '789', '10'] -# assert re.split(',','123,456,789,10,') == ['123', '456', '789', '10'] - -# assert re.match('1','1') is not None \ No newline at end of file