Skip to content

Reference tests for patterns starting with special chars #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

stasm
Copy link
Contributor

@stasm stasm commented Aug 10, 2020

A few tests for projectfluent/fluent.js#512.

Copy link
Contributor

@Pike Pike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is wrapping the patterns in a select expression necessary here?

@stasm
Copy link
Contributor Author

stasm commented Aug 10, 2020

Ah, good point, I went by the test case from the original issue, but going by the EBNF, the test cases can be made more minimal.

@stasm stasm force-pushed the special-chars-start branch from fa8da21 to 2091392 Compare August 10, 2020 15:22
@stasm stasm requested a review from Pike August 10, 2020 15:30
stasm added a commit to stasm/fluent.js that referenced this pull request Aug 10, 2020
@stasm stasm force-pushed the special-chars-start branch from 2091392 to 6f18997 Compare August 10, 2020 16:50
@stasm
Copy link
Contributor Author

stasm commented Aug 10, 2020

I think Travis is having a hiccup but I'll look again into the CI error tomorrow.

Copy link
Contributor

@Pike Pike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've cleared the caches on travis and rerun the build, and that failed for an actual error.

The OK group comment is in projectfluent/fluent.js#513, so I expect you want to add that back here?

@stasm stasm force-pushed the special-chars-start branch from 6f18997 to 03099b9 Compare August 11, 2020 11:07
@stasm stasm requested a review from Pike August 11, 2020 11:40
Copy link
Contributor

@Pike Pike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@stasm stasm merged commit 1478add into projectfluent:master Aug 14, 2020
@stasm stasm deleted the special-chars-start branch August 14, 2020 13:29
stasm added a commit to projectfluent/fluent.js that referenced this pull request Aug 14, 2020
* Port parser reference tests

projectfluent/fluent#313

* Don't drop to newline when patterns start with special chars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants