Skip to content
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

Added structure for token position tests. #1914

Merged
merged 5 commits into from
Aug 29, 2024
Merged

Conversation

TwoOfTwelve
Copy link
Contributor

@TwoOfTwelve TwoOfTwelve commented Aug 7, 2024

This adds the structure for token position tests.

The tests are written by adding test sources with a specific syntax, see languages/java/src/test/resources/de/jplag/java/tokenPositions/VarDef_1.java. The actual source is given with each line prefixed by '>'. Lines with '$' as a prefix contain information for one expected token each. The '|' marks the spot where the token should be extracted in the source line above. After that the token type follows and last the length of the token.

@TwoOfTwelve TwoOfTwelve marked this pull request as ready for review August 13, 2024 20:48
@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change labels Aug 26, 2024
Copy link
Member

@tsaglam tsaglam left a comment

Choose a reason for hiding this comment

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

I found a few issues, but generally it looks good.

Copy link

sonarcloud bot commented Aug 26, 2024

@tsaglam tsaglam merged commit 1e295bd into develop Aug 29, 2024
44 checks passed
@tsaglam tsaglam deleted the feature/columnIndexTests branch August 29, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants