Skip to content

Commit

Permalink
place block str test in correct section
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Moudani committed Jul 12, 2022
1 parent 7d2c240 commit a710e00
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions lexer/lexer_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,6 @@ simple tokens:
column: 3
value: 'foo'

- name: records correct line and column after block string
input: |
"""
some
description
""" foo
tokens:
-
kind: BLOCK_STRING
value: "some\ndescription"
-
kind: NAME
start: 27
end: 30
line: 6
column: 5
value: 'foo'

- name: skips whitespace
input: "\n\n foo\n\n\n"
tokens:
Expand Down Expand Up @@ -327,6 +307,26 @@ lexes block strings:
end: 36
value: "spans\n multiple\n lines"

- name: records correct line and column after block string
input: |
"""
some
description
""" foo
tokens:
-
kind: BLOCK_STRING
value: "some\ndescription"
-
kind: NAME
start: 27
end: 30
line: 6
column: 5
value: 'foo'

lex reports useful block string errors:
- name: unterminated string
input: '"""'
Expand Down

0 comments on commit a710e00

Please sign in to comment.