Skip to content

Commit ce653ad

Browse files
committed
fix simplelet test
Unlike `unpythonic`'s regular `let` constructs, the `simplelet` demo uses brackets, not parentheses, to define bindings. This matters when there is just one binding.
1 parent cd2a32b commit ce653ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

unpythonic/syntax/tests/test_simplelet.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
def runtests():
1010
with testset("let"):
11-
test[let[(x, 21)][2 * x] == 42] # noqa: F821, the `let` defines `x`.
12-
test[let[(x, 21), (y, 2)][y * x] == 42] # noqa: F821
11+
test[let[[x, 21]][2 * x] == 42] # noqa: F821, the `let` defines `x`.
12+
test[let[[x, 21], [y, 2]][y * x] == 42] # noqa: F821
1313

1414
with testset("letseq"):
15-
test[letseq[(x, 1)][2 * x] == 2] # noqa: F821
16-
test[letseq[(x, 1), # noqa: F821
17-
(x, 2 * x)][2 * x] == 4] # noqa: F821
15+
test[letseq[[x, 1]][2 * x] == 2] # noqa: F821
16+
test[letseq[[x, 1], # noqa: F821
17+
[x, 2 * x]][2 * x] == 4] # noqa: F821
1818

1919
if __name__ == '__main__': # pragma: no cover
2020
with session(__file__):

0 commit comments

Comments
 (0)