Skip to content

Commit

Permalink
Update comprehension syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Sep 29, 2017
1 parent deb1718 commit 7e0882e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/non-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe("verify", () => {
});
it("ArrayComprehension", () => {
verifyAndAssertMessages(
"[for const x of arr: x]",
"[...for const x of arr: x]",
{},
[]
);
Expand All @@ -150,7 +150,7 @@ x = if a: b else: c
});
it("ObjectComprehension", () => {
verifyAndAssertMessages(
"{for idx i, elem x in arr: (i, x)}",
"{...for idx i, elem x in arr: ({[i]: x})}",
{},
[]
);
Expand Down Expand Up @@ -363,7 +363,7 @@ for idx i, elem e in arr:
it("no-unexpected-multiline false positive", () => {
verifyAndAssertMessages(
unpad(`
[for idx i, elem e in arr:
[...for idx i, elem e in arr:
e
]
`),
Expand Down

0 comments on commit 7e0882e

Please sign in to comment.