Skip to content

Commit

Permalink
should not parse dashed objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ivojawer committed Jun 28, 2024
1 parent fb67338 commit 1968518
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,9 @@ describe('Wollok parser', () => {
)
})

it('should not parse dashed objects', () => {
'object my-object {}'.should.not.be.parsedBy(parser)
})

it('should recover from member parse error', () => {
'object o {var var1 vr var2 var var3}'.should.be.parsedBy(parser)
Expand Down

0 comments on commit 1968518

Please sign in to comment.