Skip to content

Commit

Permalink
Per discussion in issue #40 we are not relaxing the left-hand-side
Browse files Browse the repository at this point in the history
restrictions. So, the test case is no longer valid.
  • Loading branch information
achudnov committed Dec 1, 2015
1 parent fcaafd8 commit aa2eb0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions test-data/non-ref-lhs.js

This file was deleted.

4 changes: 0 additions & 4 deletions test/Test/StatementTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,6 @@ unitTests runTest =
expectedParseFail "continue-wrong-label-scope" (2, 26)
$: testCase "Break with the wrong label scope (extra ;)" $$
expectedParseFail "label-set" (3,11)
$: testCase "Non-reference left-hand-sides can be parsed" $$
runTest "non-ref-lhs"
[ExprStmt () $ AssignExpr () OpAssign (StringLit () "foo") (NumLit () $ Left 1)
,ExprStmt () $ AssignExpr () OpAssignAdd (InfixExpr () OpAdd (VarRef () $ Id () "a") (VarRef () $ Id () "b")) (InfixExpr () OpMul (NumLit () $ Left 4) (VarRef () $ Id () "c"))]
$: testCase "Expressions prohibited by the grammar to occur as targets of assignments (LeftHandSideExpression restriction)" $$
expectedParseFail "bad-lhs" (1, 9)
$: testCase "Number parsing" $$
Expand Down

0 comments on commit aa2eb0b

Please sign in to comment.