Python: Add copy of internal Python 3 tests

Again, mostly extractor tests, and a single library test.
This commit is contained in:
Taus
2024-04-15 12:30:01 +00:00
parent b22b4c5b85
commit 8ec414d454
82 changed files with 1462 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
| test.py:2:12:2:17 | Tuple |
| test.py:6:15:6:20 | Tuple |
| test.py:8:15:8:19 | Tuple |
| test.py:10:21:10:23 | Tuple |
| test.py:10:27:10:29 | Tuple |

View File

@@ -0,0 +1,11 @@
def cons(x, ys):
return x, *ys
def cons_each(xs, ys):
for x in xs:
yield x, *ys
print(cons(1,(2,3,4)))
for l in cons_each((1,2),(3,4)):
print(l)

View File

@@ -0,0 +1,3 @@
import python
select any(Tuple t)