Tests for NumericSeparatorLiteral. Closes gh-1051#1176
Conversation
leobalter
left a comment
There was a problem hiding this comment.
Just a few comments. The tests are good!
I love the file names, it took me less than a minute to read them properly.
One thing I imagined for this is something checking whitespaces including line terminators, like:
1
_
1on this case, the return of that - in an expression - is 1, and we can have _ with a defined accessor desc to verify the access.
what do you think? too weird?
| assert.sameValue(0b0_1, 0b01); | ||
| assert.sameValue(0b0_1, 0b01); | ||
| assert.sameValue(0b0_1, 0b01); | ||
| assert.sameValue(0b0_1, 0b01); |
|
|
||
| ---*/ | ||
|
|
||
| assert.sameValue(0b0_1, 0b01); |
There was a problem hiding this comment.
isn't this the same as in test/language/literals/numeric/numeric-separator-literal-bil-bd-nsl-bd-one-of.js?
| assert.sameValue(1_8, 18); | ||
| assert.sameValue(1_9, 19); | ||
|
|
||
|
|
There was a problem hiding this comment.
while you're fixing the other parts, you may want to remove this extra line.
|
|
||
| ---*/ | ||
|
|
||
| assert.sameValue(1_0, 10); |
There was a problem hiding this comment.
this case already exists in other files. I don't mind, but if the idea is testing one of, it would nice to add more assertions in this same file for:
2_1, 2_3, 2_4...
3_1, 3_2, 3_4...
...
|
|
||
| /*--- | ||
| esid: prod-NumericLiteralSeparator | ||
| description: description: NumericLiteralSeparator may not appear adjacent to another NumericLiteralSeparator in a BinaryIntegerLiteral |
|
|
||
| /*--- | ||
| esid: prod-NumericLiteralSeparator | ||
| description: `.` DecimalDigit NumericLiteralSeparator DecimalDigit ExponentPart_opt |
There was a problem hiding this comment.
wrap the value with quotes, otherwise the yaml will fail parsing
There was a problem hiding this comment.
same for other cases here with
description: `
|
|
||
| /*--- | ||
| esid: prod-NumericLiteralSeparator | ||
| description: description: NumericLiteralSeparator may not appear adjacent to another NumericLiteralSeparator in a OctalIntegerLiteral |
There was a problem hiding this comment.
this is a profound description
d6f022f to
e6b429c
Compare
|
We've got a few frontmatter linting bugs. |
|
Thanks for adding the stage 3 label, I thought it was already on Stage 3 and almost merged this. |
|
Fixes to frontmatter pushed |
|
@rwaldron can you open a new PR with these commits? I clicked the merge button too early. |
No description provided.