-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Check for digits after exponent char * Add tests * Update CHANGELOG * Better variable name * Update CHANGELOG
- Loading branch information
Showing
4 changed files
with
66 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/syntax_tests/data/parsing/errors/scanner/expected/exponent_notation.res.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
Syntax error! | ||
syntax_tests/data/parsing/errors/scanner/exponent_notation.res:7:10 | ||
|
||
5 │ let x = 1_e_1 | ||
6 │ | ||
7 │ let x = 1e | ||
8 │ | ||
9 │ let x = 1_e_ | ||
|
||
Expected digits after exponential notation. | ||
|
||
|
||
Syntax error! | ||
syntax_tests/data/parsing/errors/scanner/exponent_notation.res:9:11 | ||
|
||
7 │ let x = 1e | ||
8 │ | ||
9 │ let x = 1_e_ | ||
10 │ | ||
11 │ let x = 1. | ||
|
||
Expected digits after exponential notation. | ||
|
||
let x = 1e1 | ||
let x = 1e_1 | ||
let x = 1_e_1 | ||
let x = 1e | ||
let x = 1_e_ | ||
let x = 1. |
11 changes: 11 additions & 0 deletions
11
tests/syntax_tests/data/parsing/errors/scanner/exponent_notation.res
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
let x = 1e1 | ||
|
||
let x = 1e_1 | ||
|
||
let x = 1_e_1 | ||
|
||
let x = 1e | ||
|
||
let x = 1_e_ | ||
|
||
let x = 1. |