Skip to content

Commit 1068add

Browse files
committed
Split tests with disjoint concerns
1 parent 90c1ddf commit 1068add

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Starred-target edge cases — wired in the new CFG.
2+
3+
# Starred target in a Tuple LHS.
4+
*head, tail = [1, 2, 3] # $ cfgdefines=head cfgdefines=tail

python/ql/test/library-tests/ControlFlow/bindings/walrus_starred.py renamed to python/ql/test/library-tests/ControlFlow/bindings/walrus.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Walrus and starred-target edge cases — wired in the new CFG.
1+
# Walrus edge cases — wired in the new CFG.
22

33
# Walrus in expression context.
44
if (y := 5) > 0: # $ cfgdefines=y
@@ -7,8 +7,3 @@
77
# Walrus in a comprehension. The comprehension introduces a synthetic
88
# `.0` parameter bound to the iterable.
99
_ = [w for _ in range(3) if (w := 1)] # $ cfgdefines=_ cfgdefines=w cfgdefines=.0
10-
11-
# Starred target in a Tuple LHS.
12-
*head, tail = [1, 2, 3] # $ cfgdefines=head cfgdefines=tail
13-
14-

0 commit comments

Comments
 (0)