Skip to content

Commit

Permalink
test CRLF
Browse files Browse the repository at this point in the history
  • Loading branch information
ivojawer committed Jun 24, 2024
1 parent 78ebd0d commit 7734167
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,15 @@ describe('Wollok parser', () => {
{ line: 1, column: 11, offset: 10 })
})

it('should sanitize whitespaces on CRLF files', () => {
'\r\nclass c {}\r\n \r\n '.
should.be.parsedBy(parser).into(new Class({ name: 'c' }))
.and.have.sourceMap(
{ line: 2, column: 1, offset: 2 },
{ line: 2, column: 11, offset: 12 })
})


it('should sanitize whitespaces at before lines', () => {
`
Expand Down

0 comments on commit 7734167

Please sign in to comment.